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

Side by Side Diff: LayoutTests/fast/encoding/api/legacy-encode-expected.txt

Issue 120063002: Improve modules' TypeError exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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 Non-UTF encodings supported only for decode, not encode
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS new TextDecoder("utf-8").encoding is "utf-8" 6 PASS new TextDecoder("utf-8").encoding is "utf-8"
7 PASS new TextEncoder("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: Type error 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: Type error. 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" 10 PASS new TextDecoder("iso-8859-2").encoding is "iso-8859-2"
11 PASS new TextEncoder("iso-8859-2").encoding threw exception TypeError: Type erro r. 11 PASS new TextEncoder("iso-8859-2").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('iso-8859-2') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
12 PASS new TextDecoder("iso-8859-3").encoding is "iso-8859-3" 12 PASS new TextDecoder("iso-8859-3").encoding is "iso-8859-3"
13 PASS new TextEncoder("iso-8859-3").encoding threw exception TypeError: Type erro r. 13 PASS new TextEncoder("iso-8859-3").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('iso-8859-3') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
14 PASS new TextDecoder("iso-8859-4").encoding is "iso-8859-4" 14 PASS new TextDecoder("iso-8859-4").encoding is "iso-8859-4"
15 PASS new TextEncoder("iso-8859-4").encoding threw exception TypeError: Type erro r. 15 PASS new TextEncoder("iso-8859-4").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('iso-8859-4') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
16 PASS new TextDecoder("iso-8859-5").encoding is "iso-8859-5" 16 PASS new TextDecoder("iso-8859-5").encoding is "iso-8859-5"
17 PASS new TextEncoder("iso-8859-5").encoding threw exception TypeError: Type erro r. 17 PASS new TextEncoder("iso-8859-5").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('iso-8859-5') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
18 PASS new TextDecoder("iso-8859-6").encoding is "iso-8859-6" 18 PASS new TextDecoder("iso-8859-6").encoding is "iso-8859-6"
19 PASS new TextEncoder("iso-8859-6").encoding threw exception TypeError: Type erro r. 19 PASS new TextEncoder("iso-8859-6").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('iso-8859-6') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
20 PASS new TextDecoder("iso-8859-7").encoding is "iso-8859-7" 20 PASS new TextDecoder("iso-8859-7").encoding is "iso-8859-7"
21 PASS new TextEncoder("iso-8859-7").encoding threw exception TypeError: Type erro r. 21 PASS new TextEncoder("iso-8859-7").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('iso-8859-7') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
22 PASS new TextDecoder("iso-8859-8").encoding is "iso-8859-8" 22 PASS new TextDecoder("iso-8859-8").encoding is "iso-8859-8"
23 PASS new TextEncoder("iso-8859-8").encoding threw exception TypeError: Type erro r. 23 PASS new TextEncoder("iso-8859-8").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('iso-8859-8') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
24 PASS new TextDecoder("iso-8859-8-i").encoding is "iso-8859-8-i" 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: Type er ror. 25 PASS new TextEncoder("iso-8859-8-i").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('iso-8859-8-i') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
26 PASS new TextDecoder("iso-8859-10").encoding is "iso-8859-10" 26 PASS new TextDecoder("iso-8859-10").encoding is "iso-8859-10"
27 PASS new TextEncoder("iso-8859-10").encoding threw exception TypeError: Type err or. 27 PASS new TextEncoder("iso-8859-10").encoding threw exception TypeError: Failed t o construct 'TextEncoder': The encoding label provided ('iso-8859-10') is not on e of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
28 PASS new TextDecoder("iso-8859-13").encoding is "iso-8859-13" 28 PASS new TextDecoder("iso-8859-13").encoding is "iso-8859-13"
29 PASS new TextEncoder("iso-8859-13").encoding threw exception TypeError: Type err or. 29 PASS new TextEncoder("iso-8859-13").encoding threw exception TypeError: Failed t o construct 'TextEncoder': The encoding label provided ('iso-8859-13') is not on e of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
30 PASS new TextDecoder("iso-8859-14").encoding is "iso-8859-14" 30 PASS new TextDecoder("iso-8859-14").encoding is "iso-8859-14"
31 PASS new TextEncoder("iso-8859-14").encoding threw exception TypeError: Type err or. 31 PASS new TextEncoder("iso-8859-14").encoding threw exception TypeError: Failed t o construct 'TextEncoder': The encoding label provided ('iso-8859-14') is not on e of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
32 PASS new TextDecoder("iso-8859-15").encoding is "iso-8859-15" 32 PASS new TextDecoder("iso-8859-15").encoding is "iso-8859-15"
33 PASS new TextEncoder("iso-8859-15").encoding threw exception TypeError: Type err or. 33 PASS new TextEncoder("iso-8859-15").encoding threw exception TypeError: Failed t o construct 'TextEncoder': The encoding label provided ('iso-8859-15') is not on e of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
34 PASS new TextDecoder("iso-8859-16").encoding is "iso-8859-16" 34 PASS new TextDecoder("iso-8859-16").encoding is "iso-8859-16"
35 PASS new TextEncoder("iso-8859-16").encoding threw exception TypeError: Type err or. 35 PASS new TextEncoder("iso-8859-16").encoding threw exception TypeError: Failed t o construct 'TextEncoder': The encoding label provided ('iso-8859-16') is not on e of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
36 PASS new TextDecoder("koi8-r").encoding is "koi8-r" 36 PASS new TextDecoder("koi8-r").encoding is "koi8-r"
37 PASS new TextEncoder("koi8-r").encoding threw exception TypeError: Type error. 37 PASS new TextEncoder("koi8-r").encoding threw exception TypeError: Failed to con struct 'TextEncoder': The encoding label provided ('koi8-r') is not one of 'UTF- 8', 'UTF-16LE', or 'UTF-16BE'..
38 PASS new TextDecoder("koi8-u").encoding is "koi8-u" 38 PASS new TextDecoder("koi8-u").encoding is "koi8-u"
39 PASS new TextEncoder("koi8-u").encoding threw exception TypeError: Type error. 39 PASS new TextEncoder("koi8-u").encoding threw exception TypeError: Failed to con struct 'TextEncoder': The encoding label provided ('koi8-u') is not one of 'UTF- 8', 'UTF-16LE', or 'UTF-16BE'..
40 PASS new TextDecoder("macintosh").encoding is "macintosh" 40 PASS new TextDecoder("macintosh").encoding is "macintosh"
41 PASS new TextEncoder("macintosh").encoding threw exception TypeError: Type error . 41 PASS new TextEncoder("macintosh").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('macintosh') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
42 PASS new TextDecoder("windows-874").encoding is "windows-874" 42 PASS new TextDecoder("windows-874").encoding is "windows-874"
43 PASS new TextEncoder("windows-874").encoding threw exception TypeError: Type err or. 43 PASS new TextEncoder("windows-874").encoding threw exception TypeError: Failed t o construct 'TextEncoder': The encoding label provided ('windows-874') is not on e of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
44 PASS new TextDecoder("windows-1250").encoding is "windows-1250" 44 PASS new TextDecoder("windows-1250").encoding is "windows-1250"
45 PASS new TextEncoder("windows-1250").encoding threw exception TypeError: Type er ror. 45 PASS new TextEncoder("windows-1250").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('windows-1250') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
46 PASS new TextDecoder("windows-1251").encoding is "windows-1251" 46 PASS new TextDecoder("windows-1251").encoding is "windows-1251"
47 PASS new TextEncoder("windows-1251").encoding threw exception TypeError: Type er ror. 47 PASS new TextEncoder("windows-1251").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('windows-1251') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
48 PASS new TextDecoder("windows-1252").encoding is "windows-1252" 48 PASS new TextDecoder("windows-1252").encoding is "windows-1252"
49 PASS new TextEncoder("windows-1252").encoding threw exception TypeError: Type er ror. 49 PASS new TextEncoder("windows-1252").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('windows-1252') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
50 PASS new TextDecoder("windows-1253").encoding is "windows-1253" 50 PASS new TextDecoder("windows-1253").encoding is "windows-1253"
51 PASS new TextEncoder("windows-1253").encoding threw exception TypeError: Type er ror. 51 PASS new TextEncoder("windows-1253").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('windows-1253') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
52 PASS new TextDecoder("windows-1254").encoding is "windows-1254" 52 PASS new TextDecoder("windows-1254").encoding is "windows-1254"
53 PASS new TextEncoder("windows-1254").encoding threw exception TypeError: Type er ror. 53 PASS new TextEncoder("windows-1254").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('windows-1254') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
54 PASS new TextDecoder("windows-1255").encoding is "windows-1255" 54 PASS new TextDecoder("windows-1255").encoding is "windows-1255"
55 PASS new TextEncoder("windows-1255").encoding threw exception TypeError: Type er ror. 55 PASS new TextEncoder("windows-1255").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('windows-1255') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
56 PASS new TextDecoder("windows-1256").encoding is "windows-1256" 56 PASS new TextDecoder("windows-1256").encoding is "windows-1256"
57 PASS new TextEncoder("windows-1256").encoding threw exception TypeError: Type er ror. 57 PASS new TextEncoder("windows-1256").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('windows-1256') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
58 PASS new TextDecoder("windows-1257").encoding is "windows-1257" 58 PASS new TextDecoder("windows-1257").encoding is "windows-1257"
59 PASS new TextEncoder("windows-1257").encoding threw exception TypeError: Type er ror. 59 PASS new TextEncoder("windows-1257").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('windows-1257') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
60 PASS new TextDecoder("windows-1258").encoding is "windows-1258" 60 PASS new TextDecoder("windows-1258").encoding is "windows-1258"
61 PASS new TextEncoder("windows-1258").encoding threw exception TypeError: Type er ror. 61 PASS new TextEncoder("windows-1258").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('windows-1258') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
62 PASS new TextDecoder("x-mac-cyrillic").encoding is "x-mac-cyrillic" 62 PASS new TextDecoder("x-mac-cyrillic").encoding is "x-mac-cyrillic"
63 PASS new TextEncoder("x-mac-cyrillic").encoding threw exception TypeError: Type error. 63 PASS new TextEncoder("x-mac-cyrillic").encoding threw exception TypeError: Faile d to construct 'TextEncoder': The encoding label provided ('x-mac-cyrillic') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
64 PASS new TextDecoder("gbk").encoding is "gbk" 64 PASS new TextDecoder("gbk").encoding is "gbk"
65 PASS new TextEncoder("gbk").encoding threw exception TypeError: Type error. 65 PASS new TextEncoder("gbk").encoding threw exception TypeError: Failed to constr uct 'TextEncoder': The encoding label provided ('gbk') is not one of 'UTF-8', 'U TF-16LE', or 'UTF-16BE'..
66 PASS new TextDecoder("gb18030").encoding is "gb18030" 66 PASS new TextDecoder("gb18030").encoding is "gb18030"
67 PASS new TextEncoder("gb18030").encoding threw exception TypeError: Type error. 67 PASS new TextEncoder("gb18030").encoding threw exception TypeError: Failed to co nstruct 'TextEncoder': The encoding label provided ('gb18030') is not one of 'UT F-8', 'UTF-16LE', or 'UTF-16BE'..
68 PASS new TextDecoder("hz-gb-2312").encoding is "hz-gb-2312" 68 PASS new TextDecoder("hz-gb-2312").encoding is "hz-gb-2312"
69 PASS new TextEncoder("hz-gb-2312").encoding threw exception TypeError: Type erro r. 69 PASS new TextEncoder("hz-gb-2312").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('hz-gb-2312') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
70 PASS new TextDecoder("big5").encoding is "big5" 70 PASS new TextDecoder("big5").encoding is "big5"
71 PASS new TextEncoder("big5").encoding threw exception TypeError: Type error. 71 PASS new TextEncoder("big5").encoding threw exception TypeError: Failed to const ruct 'TextEncoder': The encoding label provided ('big5') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
72 PASS new TextDecoder("euc-jp").encoding is "euc-jp" 72 PASS new TextDecoder("euc-jp").encoding is "euc-jp"
73 PASS new TextEncoder("euc-jp").encoding threw exception TypeError: Type error. 73 PASS new TextEncoder("euc-jp").encoding threw exception TypeError: Failed to con struct 'TextEncoder': The encoding label provided ('euc-jp') is not one of 'UTF- 8', 'UTF-16LE', or 'UTF-16BE'..
74 PASS new TextDecoder("iso-2022-jp").encoding is "iso-2022-jp" 74 PASS new TextDecoder("iso-2022-jp").encoding is "iso-2022-jp"
75 PASS new TextEncoder("iso-2022-jp").encoding threw exception TypeError: Type err or. 75 PASS new TextEncoder("iso-2022-jp").encoding threw exception TypeError: Failed t o construct 'TextEncoder': The encoding label provided ('iso-2022-jp') is not on e of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
76 PASS new TextDecoder("shift_jis").encoding is "shift_jis" 76 PASS new TextDecoder("shift_jis").encoding is "shift_jis"
77 PASS new TextEncoder("shift_jis").encoding threw exception TypeError: Type error . 77 PASS new TextEncoder("shift_jis").encoding threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('shift_jis') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
78 PASS new TextDecoder("euc-kr").encoding is "euc-kr" 78 PASS new TextDecoder("euc-kr").encoding is "euc-kr"
79 PASS new TextEncoder("euc-kr").encoding threw exception TypeError: Type error. 79 PASS new TextEncoder("euc-kr").encoding threw exception TypeError: Failed to con struct 'TextEncoder': The encoding label provided ('euc-kr') is not one of 'UTF- 8', 'UTF-16LE', or 'UTF-16BE'..
80 PASS new TextDecoder("iso-2022-kr").encoding is "iso-2022-kr" 80 PASS new TextDecoder("iso-2022-kr").encoding is "iso-2022-kr"
81 PASS new TextEncoder("iso-2022-kr").encoding threw exception TypeError: Type err or. 81 PASS new TextEncoder("iso-2022-kr").encoding threw exception TypeError: Failed t o construct 'TextEncoder': The encoding label provided ('iso-2022-kr') is not on e of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
82 PASS new TextDecoder("utf-16be").encoding is "utf-16be" 82 PASS new TextDecoder("utf-16be").encoding is "utf-16be"
83 PASS new TextEncoder("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" 84 PASS new TextDecoder("utf-16le").encoding is "utf-16le"
85 PASS new TextEncoder("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" 86 PASS new TextDecoder("x-user-defined").encoding is "x-user-defined"
87 PASS new TextEncoder("x-user-defined").encoding threw exception TypeError: Type error. 87 PASS new TextEncoder("x-user-defined").encoding threw exception TypeError: Faile d to construct 'TextEncoder': The encoding label provided ('x-user-defined') is not one of 'UTF-8', 'UTF-16LE', or 'UTF-16BE'..
88 PASS successfullyParsed is true 88 PASS successfullyParsed is true
89 89
90 TEST COMPLETE 90 TEST COMPLETE
91 91
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698