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

Side by Side Diff: LayoutTests/fast/encoding/api/latin-1-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 Verify that Latin-1 decoders (windows-1252, iso-8859-1, us-ascii, etc) decode id entically. 1 This is a testharness.js-based test.
2 PASS Latin-1 decoders (windows-1252, iso-8859-1, us-ascii, etc) decode identical ly.
3 Harness: the test ran to completion.
2 4
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 array = new Uint8Array(256)
7 initialize array to 0...255
8 windows1252 = new TextDecoder('windows-1252')
9 decoder = new TextDecoder("ansi_x3.4-1968")
10 PASS decoder.decode(array) is windows1252.decode(array)
11 decoder = new TextDecoder("ascii")
12 PASS decoder.decode(array) is windows1252.decode(array)
13 decoder = new TextDecoder("cp1252")
14 PASS decoder.decode(array) is windows1252.decode(array)
15 decoder = new TextDecoder("cp819")
16 PASS decoder.decode(array) is windows1252.decode(array)
17 decoder = new TextDecoder("csisolatin1")
18 PASS decoder.decode(array) is windows1252.decode(array)
19 decoder = new TextDecoder("ibm819")
20 PASS decoder.decode(array) is windows1252.decode(array)
21 decoder = new TextDecoder("iso-8859-1")
22 PASS decoder.decode(array) is windows1252.decode(array)
23 decoder = new TextDecoder("iso-ir-100")
24 PASS decoder.decode(array) is windows1252.decode(array)
25 decoder = new TextDecoder("iso8859-1")
26 PASS decoder.decode(array) is windows1252.decode(array)
27 decoder = new TextDecoder("iso88591")
28 PASS decoder.decode(array) is windows1252.decode(array)
29 decoder = new TextDecoder("iso_8859-1")
30 PASS decoder.decode(array) is windows1252.decode(array)
31 decoder = new TextDecoder("iso_8859-1:1987")
32 PASS decoder.decode(array) is windows1252.decode(array)
33 decoder = new TextDecoder("l1")
34 PASS decoder.decode(array) is windows1252.decode(array)
35 decoder = new TextDecoder("latin1")
36 PASS decoder.decode(array) is windows1252.decode(array)
37 decoder = new TextDecoder("us-ascii")
38 PASS decoder.decode(array) is windows1252.decode(array)
39 decoder = new TextDecoder("x-cp1252")
40 PASS decoder.decode(array) is windows1252.decode(array)
41 PASS successfullyParsed is true
42
43 TEST COMPLETE
44 B
OLDNEW
« no previous file with comments | « LayoutTests/fast/encoding/api/latin-1.html ('k') | LayoutTests/fast/encoding/api/legacy-encode.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698