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: LayoutTests/fast/encoding/api/legacy-encode-expected.txt

Issue 240283013: Convert Encoding API tests to W3C testharness.js (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move UTF-16 surrogate tests to separate file Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Non-UTF encodings supported only for decode, not encode 1 This is a testharness.js-based test.
2 PASS UTF encodings are supported for encode and decode
3 PASS Non-UTF encodings supported only for decode, not encode
4 PASS Non-UTF encodings supported only for decode, not encode
5 PASS Non-UTF encodings supported only for decode, not encode
6 PASS Non-UTF encodings supported only for decode, not encode
7 PASS Non-UTF encodings supported only for decode, not encode
8 PASS Non-UTF encodings supported only for decode, not encode
9 PASS Non-UTF encodings supported only for decode, not encode
10 PASS Non-UTF encodings supported only for decode, not encode
11 PASS Non-UTF encodings supported only for decode, not encode
12 PASS Non-UTF encodings supported only for decode, not encode
13 PASS Non-UTF encodings supported only for decode, not encode
14 PASS Non-UTF encodings supported only for decode, not encode
15 PASS Non-UTF encodings supported only for decode, not encode
16 PASS Non-UTF encodings supported only for decode, not encode
17 PASS Non-UTF encodings supported only for decode, not encode
18 PASS Non-UTF encodings supported only for decode, not encode
19 PASS Non-UTF encodings supported only for decode, not encode
20 PASS Non-UTF encodings supported only for decode, not encode
21 PASS Non-UTF encodings supported only for decode, not encode
22 PASS Non-UTF encodings supported only for decode, not encode
23 PASS Non-UTF encodings supported only for decode, not encode
24 PASS Non-UTF encodings supported only for decode, not encode
25 PASS Non-UTF encodings supported only for decode, not encode
26 PASS Non-UTF encodings supported only for decode, not encode
27 PASS Non-UTF encodings supported only for decode, not encode
28 PASS Non-UTF encodings supported only for decode, not encode
29 PASS Non-UTF encodings supported only for decode, not encode
30 PASS Non-UTF encodings supported only for decode, not encode
31 PASS Non-UTF encodings supported only for decode, not encode
32 PASS Non-UTF encodings supported only for decode, not encode
33 PASS Non-UTF encodings supported only for decode, not encode
34 PASS Non-UTF encodings supported only for decode, not encode
35 PASS Non-UTF encodings supported only for decode, not encode
36 PASS Non-UTF encodings supported only for decode, not encode
37 PASS Non-UTF encodings supported only for decode, not encode
38 PASS Non-UTF encodings supported only for decode, not encode
39 PASS UTF encodings are supported for encode and decode
40 PASS UTF encodings are supported for encode and decode
41 PASS Non-UTF encodings supported only for decode, not encode
42 Harness: the test ran to completion.
2 43
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS new TextDecoder("utf-8").encoding is "utf-8"
7 PASS new TextEncoder("utf-8").encoding is "utf-8"
8 FAIL new TextDecoder("ibm866").encoding should be ibm866. Threw exception TypeEr ror: Failed to construct 'TextDecoder': The encoding label provided ('ibm866') i s invalid.
9 PASS new TextEncoder("ibm866").encoding threw exception TypeError: Failed to con struct 'TextEncoder': The encoding label provided ('ibm866') is invalid..
10 PASS new TextDecoder("iso-8859-2").encoding is "iso-8859-2"
11 PASS new TextEncoder("iso-8859-2").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('iso-8859-2') is not one of 'ut f-8', 'utf-16', or 'utf-16be'..
12 PASS new TextDecoder("iso-8859-3").encoding is "iso-8859-3"
13 PASS new TextEncoder("iso-8859-3").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('iso-8859-3') is not one of 'ut f-8', 'utf-16', or 'utf-16be'..
14 PASS new TextDecoder("iso-8859-4").encoding is "iso-8859-4"
15 PASS new TextEncoder("iso-8859-4").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('iso-8859-4') is not one of 'ut f-8', 'utf-16', or 'utf-16be'..
16 PASS new TextDecoder("iso-8859-5").encoding is "iso-8859-5"
17 PASS new TextEncoder("iso-8859-5").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('iso-8859-5') is not one of 'ut f-8', 'utf-16', or 'utf-16be'..
18 PASS new TextDecoder("iso-8859-6").encoding is "iso-8859-6"
19 PASS new TextEncoder("iso-8859-6").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('iso-8859-6') is not one of 'ut f-8', 'utf-16', or 'utf-16be'..
20 PASS new TextDecoder("iso-8859-7").encoding is "iso-8859-7"
21 PASS new TextEncoder("iso-8859-7").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('iso-8859-7') is not one of 'ut f-8', 'utf-16', or 'utf-16be'..
22 PASS new TextDecoder("iso-8859-8").encoding is "iso-8859-8"
23 PASS new TextEncoder("iso-8859-8").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('iso-8859-8') is not one of 'ut f-8', 'utf-16', or 'utf-16be'..
24 PASS new TextDecoder("iso-8859-8-i").encoding is "iso-8859-8-i"
25 PASS new TextEncoder("iso-8859-8-i").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('iso-8859-8-i') is not one of 'utf-8', 'utf-16', or 'utf-16be'..
26 PASS new TextDecoder("iso-8859-10").encoding is "iso-8859-10"
27 PASS new TextEncoder("iso-8859-10").encoding threw exception TypeError: Failed t o construct 'TextEncoder': The encoding provided ('iso-8859-10') is not one of ' utf-8', 'utf-16', or 'utf-16be'..
28 PASS new TextDecoder("iso-8859-13").encoding is "iso-8859-13"
29 PASS new TextEncoder("iso-8859-13").encoding threw exception TypeError: Failed t o construct 'TextEncoder': The encoding provided ('iso-8859-13') is not one of ' utf-8', 'utf-16', or 'utf-16be'..
30 PASS new TextDecoder("iso-8859-14").encoding is "iso-8859-14"
31 PASS new TextEncoder("iso-8859-14").encoding threw exception TypeError: Failed t o construct 'TextEncoder': The encoding provided ('iso-8859-14') is not one of ' utf-8', 'utf-16', or 'utf-16be'..
32 PASS new TextDecoder("iso-8859-15").encoding is "iso-8859-15"
33 PASS new TextEncoder("iso-8859-15").encoding threw exception TypeError: Failed t o construct 'TextEncoder': The encoding provided ('iso-8859-15') is not one of ' utf-8', 'utf-16', or 'utf-16be'..
34 PASS new TextDecoder("iso-8859-16").encoding is "iso-8859-16"
35 PASS new TextEncoder("iso-8859-16").encoding threw exception TypeError: Failed t o construct 'TextEncoder': The encoding provided ('iso-8859-16') is not one of ' utf-8', 'utf-16', or 'utf-16be'..
36 PASS new TextDecoder("koi8-r").encoding is "koi8-r"
37 PASS new TextEncoder("koi8-r").encoding threw exception TypeError: Failed to con struct 'TextEncoder': The encoding provided ('koi8-r') is not one of 'utf-8', 'u tf-16', or 'utf-16be'..
38 PASS new TextDecoder("koi8-u").encoding is "koi8-u"
39 PASS new TextEncoder("koi8-u").encoding threw exception TypeError: Failed to con struct 'TextEncoder': The encoding provided ('koi8-u') is not one of 'utf-8', 'u tf-16', or 'utf-16be'..
40 PASS new TextDecoder("macintosh").encoding is "macintosh"
41 PASS new TextEncoder("macintosh").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('macintosh') is not one of 'utf- 8', 'utf-16', or 'utf-16be'..
42 PASS new TextDecoder("windows-874").encoding is "windows-874"
43 PASS new TextEncoder("windows-874").encoding threw exception TypeError: Failed t o construct 'TextEncoder': The encoding provided ('windows-874') is not one of ' utf-8', 'utf-16', or 'utf-16be'..
44 PASS new TextDecoder("windows-1250").encoding is "windows-1250"
45 PASS new TextEncoder("windows-1250").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('windows-1250') is not one of 'utf-8', 'utf-16', or 'utf-16be'..
46 PASS new TextDecoder("windows-1251").encoding is "windows-1251"
47 PASS new TextEncoder("windows-1251").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('windows-1251') is not one of 'utf-8', 'utf-16', or 'utf-16be'..
48 PASS new TextDecoder("windows-1252").encoding is "windows-1252"
49 PASS new TextEncoder("windows-1252").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('windows-1252') is not one of 'utf-8', 'utf-16', or 'utf-16be'..
50 PASS new TextDecoder("windows-1253").encoding is "windows-1253"
51 PASS new TextEncoder("windows-1253").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('windows-1253') is not one of 'utf-8', 'utf-16', or 'utf-16be'..
52 PASS new TextDecoder("windows-1254").encoding is "windows-1254"
53 PASS new TextEncoder("windows-1254").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('windows-1254') is not one of 'utf-8', 'utf-16', or 'utf-16be'..
54 PASS new TextDecoder("windows-1255").encoding is "windows-1255"
55 PASS new TextEncoder("windows-1255").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('windows-1255') is not one of 'utf-8', 'utf-16', or 'utf-16be'..
56 PASS new TextDecoder("windows-1256").encoding is "windows-1256"
57 PASS new TextEncoder("windows-1256").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('windows-1256') is not one of 'utf-8', 'utf-16', or 'utf-16be'..
58 PASS new TextDecoder("windows-1257").encoding is "windows-1257"
59 PASS new TextEncoder("windows-1257").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('windows-1257') is not one of 'utf-8', 'utf-16', or 'utf-16be'..
60 PASS new TextDecoder("windows-1258").encoding is "windows-1258"
61 PASS new TextEncoder("windows-1258").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('windows-1258') is not one of 'utf-8', 'utf-16', or 'utf-16be'..
62 PASS new TextDecoder("x-mac-cyrillic").encoding is "x-mac-cyrillic"
63 PASS new TextEncoder("x-mac-cyrillic").encoding threw exception TypeError: Faile d to construct 'TextEncoder': The encoding provided ('x-mac-cyrillic') is not on e of 'utf-8', 'utf-16', or 'utf-16be'..
64 PASS new TextDecoder("gbk").encoding is "gbk"
65 PASS new TextEncoder("gbk").encoding threw exception TypeError: Failed to constr uct 'TextEncoder': The encoding provided ('gbk') is not one of 'utf-8', 'utf-16' , or 'utf-16be'..
66 PASS new TextDecoder("gb18030").encoding is "gb18030"
67 PASS new TextEncoder("gb18030").encoding threw exception TypeError: Failed to co nstruct 'TextEncoder': The encoding provided ('gb18030') is not one of 'utf-8', 'utf-16', or 'utf-16be'..
68 PASS new TextDecoder("hz-gb-2312").encoding is "hz-gb-2312"
69 PASS new TextEncoder("hz-gb-2312").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('hz-gb-2312') is not one of 'ut f-8', 'utf-16', or 'utf-16be'..
70 PASS new TextDecoder("big5").encoding is "big5"
71 PASS new TextEncoder("big5").encoding threw exception TypeError: Failed to const ruct 'TextEncoder': The encoding provided ('big5') is not one of 'utf-8', 'utf-1 6', or 'utf-16be'..
72 PASS new TextDecoder("euc-jp").encoding is "euc-jp"
73 PASS new TextEncoder("euc-jp").encoding threw exception TypeError: Failed to con struct 'TextEncoder': The encoding provided ('euc-jp') is not one of 'utf-8', 'u tf-16', or 'utf-16be'..
74 PASS new TextDecoder("iso-2022-jp").encoding is "iso-2022-jp"
75 PASS new TextEncoder("iso-2022-jp").encoding threw exception TypeError: Failed t o construct 'TextEncoder': The encoding provided ('iso-2022-jp') is not one of ' utf-8', 'utf-16', or 'utf-16be'..
76 PASS new TextDecoder("shift_jis").encoding is "shift_jis"
77 PASS new TextEncoder("shift_jis").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('shift_jis') is not one of 'utf- 8', 'utf-16', or 'utf-16be'..
78 PASS new TextDecoder("euc-kr").encoding is "euc-kr"
79 PASS new TextEncoder("euc-kr").encoding threw exception TypeError: Failed to con struct 'TextEncoder': The encoding provided ('euc-kr') is not one of 'utf-8', 'u tf-16', or 'utf-16be'..
80 PASS new TextDecoder("iso-2022-kr").encoding is "iso-2022-kr"
81 PASS new TextEncoder("iso-2022-kr").encoding threw exception TypeError: Failed t o construct 'TextEncoder': The encoding provided ('iso-2022-kr') is not one of ' utf-8', 'utf-16', or 'utf-16be'..
82 PASS new TextDecoder("utf-16be").encoding is "utf-16be"
83 PASS new TextEncoder("utf-16be").encoding is "utf-16be"
84 PASS new TextDecoder("utf-16le").encoding is "utf-16le"
85 PASS new TextEncoder("utf-16le").encoding is "utf-16le"
86 PASS new TextDecoder("x-user-defined").encoding is "x-user-defined"
87 PASS new TextEncoder("x-user-defined").encoding threw exception TypeError: Faile d to construct 'TextEncoder': The encoding provided ('x-user-defined') is not on e of 'utf-8', 'utf-16', or 'utf-16be'..
88 PASS successfullyParsed is true
89
90 TEST COMPLETE
91
OLDNEW
« no previous file with comments | « LayoutTests/fast/encoding/api/legacy-encode.html ('k') | LayoutTests/fast/encoding/api/resources/shared.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698