| Index: LayoutTests/fast/encoding/api/byte-order-marks-expected.txt
|
| diff --git a/LayoutTests/fast/encoding/api/byte-order-marks-expected.txt b/LayoutTests/fast/encoding/api/byte-order-marks-expected.txt
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3771a531943919aa592ff3d3ac0278f80af2ae3c
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/encoding/api/byte-order-marks-expected.txt
|
| @@ -0,0 +1,21 @@
|
| +Test the Encoding API's handling of byte-order marks (BOMs).
|
| +
|
| +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
| +
|
| +
|
| +PASS new TextDecoder('utf-8').decode(new Uint8Array(utf8)) is "z¢水𝄞"
|
| +PASS new TextDecoder('utf-16le').decode(new Uint8Array(utf16le)) is "z¢水𝄞"
|
| +PASS new TextDecoder('utf-16be').decode(new Uint8Array(utf16be)) is "z¢水𝄞"
|
| +FAIL new TextDecoder('utf-8').decode(new Uint8Array(utf8_bom.concat(utf8))) should be z¢水𝄞. Was z¢水𝄞.
|
| +FAIL new TextDecoder('utf-16le').decode(new Uint8Array(utf16le_bom.concat(utf16le))) should be z¢水𝄞. Was z¢水𝄞.
|
| +FAIL new TextDecoder('utf-16be').decode(new Uint8Array(utf16be_bom.concat(utf16be))) should be z¢水𝄞. Was z¢水𝄞.
|
| +PASS new TextDecoder('utf-8').decode(new Uint8Array(utf16le_bom.concat(utf8))) is not "z¢水𝄞"
|
| +PASS new TextDecoder('utf-8').decode(new Uint8Array(utf16be_bom.concat(utf8))) is not "z¢水𝄞"
|
| +PASS new TextDecoder('utf-16le').decode(new Uint8Array(utf8_bom.concat(utf16le))) is not "z¢水𝄞"
|
| +PASS new TextDecoder('utf-16le').decode(new Uint8Array(utf16be_bom.concat(utf16le))) is not "z¢水𝄞"
|
| +PASS new TextDecoder('utf-16be').decode(new Uint8Array(utf8_bom.concat(utf16be))) is not "z¢水𝄞"
|
| +PASS new TextDecoder('utf-16be').decode(new Uint8Array(utf16le_bom.concat(utf16be))) is not "z¢水𝄞"
|
| +PASS successfullyParsed is true
|
| +
|
| +TEST COMPLETE
|
| +
|
|
|