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

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

Issue 2379333003: UTF-16 Decoder: Convert unpaired surrogates to replacement characters (Closed)
Patch Set: Rebase, switch test to testharness Created 4 years, 2 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698