| Index: LayoutTests/fast/encoding/api/end-of-file-expected.txt
|
| diff --git a/LayoutTests/fast/encoding/api/end-of-file-expected.txt b/LayoutTests/fast/encoding/api/end-of-file-expected.txt
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9c18b5e2297ac7d2f0ef15653f781e9276b352d5
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/encoding/api/end-of-file-expected.txt
|
| @@ -0,0 +1,23 @@
|
| +Edge cases around non-fatal errors at EOF
|
| +
|
| +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
| +
|
| +
|
| +PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xff])) threw exception EncodingError: The encoded data was not valid..
|
| +
|
| +Should not throw or hang:
|
| +new TextDecoder('utf-8').decode(new Uint8Array([0xff]))
|
| +
|
| +FAIL new TextDecoder('utf-16', {fatal: true}).decode(new Uint8Array([0x00])) should throw an exception. Was .
|
| +
|
| +Should not throw or hang:
|
| +new TextDecoder('utf-16').decode(new Uint8Array([0x00]))
|
| +
|
| +FAIL new TextDecoder('utf-16be', {fatal: true}).decode(new Uint8Array([0x00])) should throw an exception. Was .
|
| +
|
| +Should not throw or hang:
|
| +new TextDecoder('utf-16be').decode(new Uint8Array([0x00]));
|
| +PASS successfullyParsed is true
|
| +
|
| +TEST COMPLETE
|
| +
|
|
|