OLD | NEW |
| (Empty) |
1 This is a testharness.js-based test. | |
2 FAIL utf-16le - lone surrogate lead assert_equals: expected "\ufffd" but got "���" | |
3 FAIL utf-16le - lone surrogate lead (fatal flag set) assert_throws: function "fu
nction () { | |
4 new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array(t.i
nput)) | |
5 }" did not throw | |
6 FAIL utf-16le - lone surrogate trail assert_equals: expected "\ufffd" but got "���
" | |
7 FAIL utf-16le - lone surrogate trail (fatal flag set) assert_throws: function "f
unction () { | |
8 new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array(t.i
nput)) | |
9 }" did not throw | |
10 FAIL utf-16le - unmatched surrogate lead assert_equals: expected "\ufffd\0" but
got "���\0" | |
11 FAIL utf-16le - unmatched surrogate lead (fatal flag set) assert_throws: functio
n "function () { | |
12 new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array(t.i
nput)) | |
13 }" did not throw | |
14 FAIL utf-16le - unmatched surrogate trail assert_equals: expected "\ufffd\0" but
got "���\0" | |
15 FAIL utf-16le - unmatched surrogate trail (fatal flag set) assert_throws: functi
on "function () { | |
16 new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array(t.i
nput)) | |
17 }" did not throw | |
18 FAIL utf-16le - swapped surrogate pair assert_equals: expected "\ufffd\ufffd" bu
t got "������" | |
19 FAIL utf-16le - swapped surrogate pair (fatal flag set) assert_throws: function
"function () { | |
20 new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array(t.i
nput)) | |
21 }" did not throw | |
22 Harness: the test ran to completion. | |
23 | |
OLD | NEW |