| Index: third_party/WebKit/LayoutTests/imported/wpt/encoding/textdecoder-utf16-surrogates-expected.txt
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/encoding/textdecoder-utf16-surrogates-expected.txt b/third_party/WebKit/LayoutTests/imported/wpt/encoding/textdecoder-utf16-surrogates-expected.txt
|
| index 450117560d10fa9cc455dedfffc3ef343ef331e6..6bc48ef1c455591fe0803229cfe57f4e62837820 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/wpt/encoding/textdecoder-utf16-surrogates-expected.txt
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/encoding/textdecoder-utf16-surrogates-expected.txt
|
| @@ -1,18 +1,23 @@
|
| This is a testharness.js-based test.
|
| FAIL utf-16le - lone surrogate lead assert_equals: expected "\ufffd" but got "���"
|
| FAIL utf-16le - lone surrogate lead (fatal flag set) assert_throws: function "function () {
|
| - new TextDecoder(t.encoding, {fa..." did not throw
|
| + new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array(t.input))
|
| + }" did not throw
|
| FAIL utf-16le - lone surrogate trail assert_equals: expected "\ufffd" but got "���"
|
| FAIL utf-16le - lone surrogate trail (fatal flag set) assert_throws: function "function () {
|
| - new TextDecoder(t.encoding, {fa..." did not throw
|
| + new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array(t.input))
|
| + }" did not throw
|
| FAIL utf-16le - unmatched surrogate lead assert_equals: expected "\ufffd\0" but got "���\0"
|
| FAIL utf-16le - unmatched surrogate lead (fatal flag set) assert_throws: function "function () {
|
| - new TextDecoder(t.encoding, {fa..." did not throw
|
| + new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array(t.input))
|
| + }" did not throw
|
| FAIL utf-16le - unmatched surrogate trail assert_equals: expected "\ufffd\0" but got "���\0"
|
| FAIL utf-16le - unmatched surrogate trail (fatal flag set) assert_throws: function "function () {
|
| - new TextDecoder(t.encoding, {fa..." did not throw
|
| + new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array(t.input))
|
| + }" did not throw
|
| FAIL utf-16le - swapped surrogate pair assert_equals: expected "\ufffd\ufffd" but got "������"
|
| FAIL utf-16le - swapped surrogate pair (fatal flag set) assert_throws: function "function () {
|
| - new TextDecoder(t.encoding, {fa..." did not throw
|
| + new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array(t.input))
|
| + }" did not throw
|
| Harness: the test ran to completion.
|
|
|
|
|