Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/encoding/textdecoder-utf16-surrogates-expected.txt

Issue 2022203002: Import wpt@d510ec1abc30eee4c855c13842bc2f0dfa791f8b (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Message changed by testharness.js update Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698