| Index: LayoutTests/fast/encoding/api/latin-1-expected.txt
|
| diff --git a/LayoutTests/fast/encoding/api/latin-1-expected.txt b/LayoutTests/fast/encoding/api/latin-1-expected.txt
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d689036b2c1ffe9d852ad1e2e9e7a4c921092333
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/encoding/api/latin-1-expected.txt
|
| @@ -0,0 +1,44 @@
|
| +Verify that Latin-1 decoders (windows-1252, iso-8859-1, us-ascii, etc) decode identically.
|
| +
|
| +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
| +
|
| +
|
| +array = new Uint8Array(256)
|
| +initialize array to 0...255
|
| +windows1252 = new TextDecoder('windows-1252')
|
| +decoder = new TextDecoder("ansi_x3.4-1968")
|
| +PASS decoder.decode(array) is windows1252.decode(array)
|
| +decoder = new TextDecoder("ascii")
|
| +PASS decoder.decode(array) is windows1252.decode(array)
|
| +decoder = new TextDecoder("cp1252")
|
| +PASS decoder.decode(array) is windows1252.decode(array)
|
| +decoder = new TextDecoder("cp819")
|
| +PASS decoder.decode(array) is windows1252.decode(array)
|
| +decoder = new TextDecoder("csisolatin1")
|
| +PASS decoder.decode(array) is windows1252.decode(array)
|
| +decoder = new TextDecoder("ibm819")
|
| +PASS decoder.decode(array) is windows1252.decode(array)
|
| +decoder = new TextDecoder("iso-8859-1")
|
| +PASS decoder.decode(array) is windows1252.decode(array)
|
| +decoder = new TextDecoder("iso-ir-100")
|
| +PASS decoder.decode(array) is windows1252.decode(array)
|
| +decoder = new TextDecoder("iso8859-1")
|
| +PASS decoder.decode(array) is windows1252.decode(array)
|
| +decoder = new TextDecoder("iso88591")
|
| +FAIL decoder = new TextDecoder("iso88591") threw exception TypeError: Type error
|
| +decoder = new TextDecoder("iso_8859-1")
|
| +FAIL decoder = new TextDecoder("iso_8859-1") threw exception TypeError: Type error
|
| +decoder = new TextDecoder("iso_8859-1:1987")
|
| +PASS decoder.decode(array) is windows1252.decode(array)
|
| +decoder = new TextDecoder("l1")
|
| +PASS decoder.decode(array) is windows1252.decode(array)
|
| +decoder = new TextDecoder("latin1")
|
| +PASS decoder.decode(array) is windows1252.decode(array)
|
| +decoder = new TextDecoder("us-ascii")
|
| +PASS decoder.decode(array) is windows1252.decode(array)
|
| +decoder = new TextDecoder("x-cp1252")
|
| +FAIL decoder = new TextDecoder("x-cp1252") threw exception TypeError: Type error
|
| +PASS successfullyParsed is true
|
| +
|
| +TEST COMPLETE
|
| +B
|
|
|