Bug 1374149 - Follow-up: Adjust test result since invalid character is detected immediately due to no streaming. r=me DONTBUILD
authorJorg K <jorgk@jorgk.com>
Sat, 01 Jul 2017 12:36:51 +0200
changeset 28402 0f423916d61ee30891a8c7b419f678c7145dbe44
parent 28401 9b1083e627bce58e8cd029bd5a46e4a8bc203d44
child 28403 ceb1142708c762273ba9436887b5ff7b8ef60f5d
push id1986
push userclokep@gmail.com
push dateWed, 02 Aug 2017 14:43:31 +0000
treeherdercomm-beta@b51c9adf2c9e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1374149
Bug 1374149 - Follow-up: Adjust test result since invalid character is detected immediately due to no streaming. r=me DONTBUILD
mailnews/mime/test/unit/test_jsmime_charset.js
--- a/mailnews/mime/test/unit/test_jsmime_charset.js
+++ b/mailnews/mime/test/unit/test_jsmime_charset.js
@@ -3,17 +3,17 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 // This tests that the charset decoding uses nsICharsetDecoder instead of
 // TextDecoder, to get some extra charsets.
 
 Components.utils.import("resource:///modules/jsmime.jsm");
 
 var tests = [
-  ["=?UTF-8?Q?=C2?=", ""],
+  ["=?UTF-8?Q?=C2?=", "\uFFFD"], // Replacement character for invalid input.
   ["=?NotARealCharset?Q?text?=", "=?NotARealCharset?Q?text?="],
   ["\xC2\xA31", "\u00A31", "ISO-8859-2"],
   ["\xA31", "\u01411", "ISO-8859-2"],
   ["\xC21", "\u00C21", "ISO-8859-1"],
 ];
 
 function run_test() {
   for (let test of tests) {