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

Side by Side Diff: LayoutTests/fast/encoding/api/byte-order-marks-expected.txt

Issue 240283013: Convert Encoding API tests to W3C testharness.js (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 Test the Encoding API's handling of byte-order marks (BOMs). 1 This is a testharness.js-based test.
2 PASS Byte-order marks: utf-8
3 PASS Byte-order marks: utf-16le
4 PASS Byte-order marks: utf-16be
5 Harness: the test ran to completion.
2 6
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS new TextDecoder('utf-8').decode(new Uint8Array(utf8)) is "z¢水𝄞􏿽"
7 PASS new TextDecoder('utf-16le').decode(new Uint8Array(utf16le)) is "z¢水𝄞􏿽"
8 PASS new TextDecoder('utf-16be').decode(new Uint8Array(utf16be)) is "z¢水𝄞􏿽"
9 PASS new TextDecoder('utf-8').decode(new Uint8Array(utf8_bom.concat(utf8))) is " z¢水𝄞􏿽"
10 PASS new TextDecoder('utf-16le').decode(new Uint8Array(utf16le_bom.concat(utf16l e))) is "z¢水𝄞􏿽"
11 PASS new TextDecoder('utf-16be').decode(new Uint8Array(utf16be_bom.concat(utf16b e))) is "z¢水𝄞􏿽"
12 PASS new TextDecoder('utf-8').decode(new Uint8Array(utf16le_bom.concat(utf8))) i s not "z¢水𝄞􏿽"
13 PASS new TextDecoder('utf-8').decode(new Uint8Array(utf16be_bom.concat(utf8))) i s not "z¢水𝄞􏿽"
14 PASS new TextDecoder('utf-16le').decode(new Uint8Array(utf8_bom.concat(utf16le)) ) is not "z¢水𝄞􏿽"
15 PASS new TextDecoder('utf-16le').decode(new Uint8Array(utf16be_bom.concat(utf16l e))) is not "z¢水𝄞􏿽"
16 PASS new TextDecoder('utf-16be').decode(new Uint8Array(utf8_bom.concat(utf16be)) ) is not "z¢水𝄞􏿽"
17 PASS new TextDecoder('utf-16be').decode(new Uint8Array(utf16le_bom.concat(utf16b e))) is not "z¢水𝄞􏿽"
18 PASS successfullyParsed is true
19
20 TEST COMPLETE
21
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698