| Index: LayoutTests/fast/encoding/api/replacement-encoding-expected.txt
|
| diff --git a/LayoutTests/fast/encoding/api/replacement-encoding-expected.txt b/LayoutTests/fast/encoding/api/replacement-encoding-expected.txt
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..842166c985a56491aa058d168a2c50d4ec042019
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/encoding/api/replacement-encoding-expected.txt
|
| @@ -0,0 +1,51 @@
|
| +Verify replacement encoding behavior
|
| +
|
| +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
| +
|
| +
|
| +PASS new TextEncoder('replacement') threw exception TypeError: Failed to construct 'TextEncoder': The encoding label provided ('replacement') is invalid..
|
| +PASS new TextDecoder('replacement') threw exception TypeError: Failed to construct 'TextDecoder': The encoding label provided ('replacement') is invalid..
|
| +
|
| +label: csiso2022kr
|
| +
|
| +PASS new TextEncoder('csiso2022kr') threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('csiso2022kr') is not one of 'utf-8', 'utf-16', or 'utf-16be'..
|
| +decoder = new TextDecoder('csiso2022kr')
|
| +PASS decoder.encoding is "replacement"
|
| +PASS decoder.decode(new Uint8Array([0x41,0x42,0x43])) is ""
|
| +decoder = new TextDecoder('csiso2022kr', {fatal: true})
|
| +PASS decoder.encoding is "replacement"
|
| +PASS decoder.decode(new Uint8Array([0x41,0x42,0x43])) threw exception EncodingError: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid..
|
| +
|
| +label: iso-2022-cn
|
| +
|
| +PASS new TextEncoder('iso-2022-cn') threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('iso-2022-cn') is not one of 'utf-8', 'utf-16', or 'utf-16be'..
|
| +decoder = new TextDecoder('iso-2022-cn')
|
| +PASS decoder.encoding is "replacement"
|
| +PASS decoder.decode(new Uint8Array([0x41,0x42,0x43])) is ""
|
| +decoder = new TextDecoder('iso-2022-cn', {fatal: true})
|
| +PASS decoder.encoding is "replacement"
|
| +PASS decoder.decode(new Uint8Array([0x41,0x42,0x43])) threw exception EncodingError: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid..
|
| +
|
| +label: iso-2022-cn-ext
|
| +
|
| +PASS new TextEncoder('iso-2022-cn-ext') threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('iso-2022-cn-ext') is not one of 'utf-8', 'utf-16', or 'utf-16be'..
|
| +decoder = new TextDecoder('iso-2022-cn-ext')
|
| +PASS decoder.encoding is "replacement"
|
| +PASS decoder.decode(new Uint8Array([0x41,0x42,0x43])) is ""
|
| +decoder = new TextDecoder('iso-2022-cn-ext', {fatal: true})
|
| +PASS decoder.encoding is "replacement"
|
| +PASS decoder.decode(new Uint8Array([0x41,0x42,0x43])) threw exception EncodingError: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid..
|
| +
|
| +label: iso-2022-kr
|
| +
|
| +PASS new TextEncoder('iso-2022-kr') threw exception TypeError: Failed to construct 'TextEncoder': The encoding provided ('iso-2022-kr') is not one of 'utf-8', 'utf-16', or 'utf-16be'..
|
| +decoder = new TextDecoder('iso-2022-kr')
|
| +PASS decoder.encoding is "replacement"
|
| +PASS decoder.decode(new Uint8Array([0x41,0x42,0x43])) is ""
|
| +decoder = new TextDecoder('iso-2022-kr', {fatal: true})
|
| +PASS decoder.encoding is "replacement"
|
| +PASS decoder.decode(new Uint8Array([0x41,0x42,0x43])) threw exception EncodingError: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid..
|
| +PASS successfullyParsed is true
|
| +
|
| +TEST COMPLETE
|
| +
|
|
|