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

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

Powered by Google App Engine
This is Rietveld 408576698