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

Side by Side Diff: LayoutTests/fast/encoding/api/end-of-file-expected.txt

Issue 15901002: Implement Encoding API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline webexposed global constructor tests Created 7 years, 4 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
(Empty)
1 Edge cases around non-fatal errors at EOF
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xff])) thre w exception EncodingError: The encoded data was not valid..
7
8 Should not throw or hang:
9 new TextDecoder('utf-8').decode(new Uint8Array([0xff]))
10
11 FAIL new TextDecoder('utf-16', {fatal: true}).decode(new Uint8Array([0x00])) sho uld throw an exception. Was .
12
13 Should not throw or hang:
14 new TextDecoder('utf-16').decode(new Uint8Array([0x00]))
15
16 FAIL new TextDecoder('utf-16be', {fatal: true}).decode(new Uint8Array([0x00])) s hould throw an exception. Was .
17
18 Should not throw or hang:
19 new TextDecoder('utf-16be').decode(new Uint8Array([0x00]));
20 PASS successfullyParsed is true
21
22 TEST COMPLETE
23
OLDNEW
« no previous file with comments | « LayoutTests/fast/encoding/api/end-of-file.html ('k') | LayoutTests/fast/encoding/api/fatal-flag.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698