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

Side by Side Diff: LayoutTests/fast/encoding/api/ascii-supersets-expected.txt

Issue 15901002: Implement Encoding API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline webexposed global constructor tests Created 7 years, 4 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
(Empty)
1 Supersets of ASCII decode ASCII correctly
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 decoder = new TextDecoder('utf-8')
7 decoded = decoder.decode(new Uint8Array(bytes))
8 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
9 decoder = new TextDecoder('ibm864')
10 decoded = decoder.decode(new Uint8Array(bytes))
11 FAIL encodeURIComponent(string) should be %00%01%02%03%04%05%06%07%08%09%0A%0B%0 C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1C%1B%7F%1D%1E%1F%20!%22%23%24%25%26'() *%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B%5C%5D%5 E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%1A. Was %00%01%02%03%04%05%06%07%08%09 %0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%20!%22%23%24% 25%26'()*%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B %5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%7F.
12 decoder = new TextDecoder('ibm866')
13 FAIL decoder = new TextDecoder('ibm866') threw exception TypeError: Type error
14 decoded = decoder.decode(new Uint8Array(bytes))
15 FAIL encodeURIComponent(string) should be %00%01%02%03%04%05%06%07%08%09%0A%0B%0 C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1C%1B%7F%1D%1E%1F%20!%22%23%24%25%26'() *%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B%5C%5D%5 E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%1A. Was %00%01%02%03%04%05%06%07%08%09 %0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%20!%22%23%24% 25%26'()*%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B %5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%7F.
16 decoder = new TextDecoder('iso-8859-2')
17 decoded = decoder.decode(new Uint8Array(bytes))
18 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
19 decoder = new TextDecoder('iso-8859-3')
20 decoded = decoder.decode(new Uint8Array(bytes))
21 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
22 decoder = new TextDecoder('iso-8859-4')
23 decoded = decoder.decode(new Uint8Array(bytes))
24 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
25 decoder = new TextDecoder('iso-8859-5')
26 decoded = decoder.decode(new Uint8Array(bytes))
27 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
28 decoder = new TextDecoder('iso-8859-6')
29 decoded = decoder.decode(new Uint8Array(bytes))
30 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
31 decoder = new TextDecoder('iso-8859-7')
32 decoded = decoder.decode(new Uint8Array(bytes))
33 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
34 decoder = new TextDecoder('iso-8859-8')
35 decoded = decoder.decode(new Uint8Array(bytes))
36 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
37 decoder = new TextDecoder('iso-8859-10')
38 decoded = decoder.decode(new Uint8Array(bytes))
39 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
40 decoder = new TextDecoder('iso-8859-13')
41 decoded = decoder.decode(new Uint8Array(bytes))
42 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
43 decoder = new TextDecoder('iso-8859-14')
44 decoded = decoder.decode(new Uint8Array(bytes))
45 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
46 decoder = new TextDecoder('iso-8859-15')
47 decoded = decoder.decode(new Uint8Array(bytes))
48 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
49 decoder = new TextDecoder('iso-8859-16')
50 decoded = decoder.decode(new Uint8Array(bytes))
51 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
52 decoder = new TextDecoder('koi8-r')
53 decoded = decoder.decode(new Uint8Array(bytes))
54 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
55 decoder = new TextDecoder('koi8-u')
56 decoded = decoder.decode(new Uint8Array(bytes))
57 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
58 decoder = new TextDecoder('macintosh')
59 decoded = decoder.decode(new Uint8Array(bytes))
60 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
61 decoder = new TextDecoder('windows-874')
62 decoded = decoder.decode(new Uint8Array(bytes))
63 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
64 decoder = new TextDecoder('windows-1250')
65 decoded = decoder.decode(new Uint8Array(bytes))
66 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
67 decoder = new TextDecoder('windows-1251')
68 decoded = decoder.decode(new Uint8Array(bytes))
69 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
70 decoder = new TextDecoder('windows-1252')
71 decoded = decoder.decode(new Uint8Array(bytes))
72 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
73 decoder = new TextDecoder('windows-1253')
74 decoded = decoder.decode(new Uint8Array(bytes))
75 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
76 decoder = new TextDecoder('windows-1254')
77 decoded = decoder.decode(new Uint8Array(bytes))
78 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
79 decoder = new TextDecoder('windows-1255')
80 decoded = decoder.decode(new Uint8Array(bytes))
81 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
82 decoder = new TextDecoder('windows-1256')
83 decoded = decoder.decode(new Uint8Array(bytes))
84 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
85 decoder = new TextDecoder('windows-1257')
86 decoded = decoder.decode(new Uint8Array(bytes))
87 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
88 decoder = new TextDecoder('windows-1258')
89 decoded = decoder.decode(new Uint8Array(bytes))
90 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
91 decoder = new TextDecoder('x-mac-cyrillic')
92 decoded = decoder.decode(new Uint8Array(bytes))
93 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
94 decoder = new TextDecoder('gbk')
95 decoded = decoder.decode(new Uint8Array(bytes))
96 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
97 decoder = new TextDecoder('gb18030')
98 decoded = decoder.decode(new Uint8Array(bytes))
99 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
100 decoder = new TextDecoder('hz-gb-2312')
101 decoded = decoder.decode(new Uint8Array(bytes))
102 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
103 decoder = new TextDecoder('big5')
104 decoded = decoder.decode(new Uint8Array(bytes))
105 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
106 decoder = new TextDecoder('euc-jp')
107 decoded = decoder.decode(new Uint8Array(bytes))
108 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
109 decoder = new TextDecoder('iso-2022-jp')
110 decoded = decoder.decode(new Uint8Array(bytes))
111 FAIL encodeURIComponent(string) should be %00%01%02%03%04%05%06%07%08%09%0A%0B%0 C%0D%EF%BF%BD%EF%BF%BD%10%11%12%13%14%15%16%17%18%19%1A%1C%1D%1E%1F%20!%22%23%24 %25%26'()*%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5 B%5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%7F. Was %00%01%02%03%04%05%06 %07%08%09%0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1C%1D%1E%1F%20!%22% 23%24%25%26'()*%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVW XYZ%5B%5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%7F.
112 decoder = new TextDecoder('shift_jis')
113 decoded = decoder.decode(new Uint8Array(bytes))
114 FAIL encodeURIComponent(string) should be %00%01%02%03%04%05%06%07%08%09%0A%0B%0 C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1C%1B%7F%1D%1E%1F%20!%22%23%24%25%26'() *%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B%5C%5D%5 E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%1A. Was %00%01%02%03%04%05%06%07%08%09 %0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%20!%22%23%24% 25%26'()*%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B %5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%7F.
115 decoder = new TextDecoder('euc-kr')
116 decoded = decoder.decode(new Uint8Array(bytes))
117 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
118 decoder = new TextDecoder('iso-2022-kr')
119 decoded = decoder.decode(new Uint8Array(bytes))
120 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
121 PASS successfullyParsed is true
122
123 TEST COMPLETE
124
OLDNEW
« no previous file with comments | « LayoutTests/fast/encoding/api/ascii-supersets.html ('k') | LayoutTests/fast/encoding/api/basics.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698