Bug 1374149 - Follow-up: Adjust test result since invalid character is detected immediately due to no streaming. r=me DONTBUILD
--- 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) {