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

Side by Side Diff: LayoutTests/fast/encoding/api/fatal-flag-expected.txt

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years 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
OLDNEW
1 Test the Encoding API's 'fatal' flag 1 Test the Encoding API's 'fatal' flag
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xC0])) thre w exception EncodingError: The encoded data was not valid.. 6 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xC0])) thre w exception EncodingError: Failed to execute 'decode' on 'TextDecoder': The enco ded data was not valid..
7 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xC0, 0x00]) ) threw exception EncodingError: The encoded data was not valid.. 7 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xC0, 0x00]) ) threw exception EncodingError: Failed to execute 'decode' on 'TextDecoder': Th e encoded data was not valid..
8 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xC0, 0xC0]) ) threw exception EncodingError: The encoded data was not valid.. 8 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xC0, 0xC0]) ) threw exception EncodingError: Failed to execute 'decode' on 'TextDecoder': Th e encoded data was not valid..
9 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0])) thre w exception EncodingError: The encoded data was not valid.. 9 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0])) thre w exception EncodingError: Failed to execute 'decode' on 'TextDecoder': The enco ded data was not valid..
10 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0, 0x00]) ) threw exception EncodingError: The encoded data was not valid.. 10 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0, 0x00]) ) threw exception EncodingError: Failed to execute 'decode' on 'TextDecoder': Th e encoded data was not valid..
11 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0, 0xC0]) ) threw exception EncodingError: The encoded data was not valid.. 11 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0, 0xC0]) ) threw exception EncodingError: Failed to execute 'decode' on 'TextDecoder': Th e encoded data was not valid..
12 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0, 0x80, 0x00])) threw exception EncodingError: The encoded data was not valid.. 12 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0, 0x80, 0x00])) threw exception EncodingError: Failed to execute 'decode' on 'TextDecode r': The encoded data was not valid..
13 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0, 0x80, 0xC0])) threw exception EncodingError: The encoded data was not valid.. 13 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xE0, 0x80, 0xC0])) threw exception EncodingError: Failed to execute 'decode' on 'TextDecode r': The encoded data was not valid..
14 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xFC, 0x80, 0x80, 0x80, 0x80, 0x80])) threw exception EncodingError: The encoded data was no t valid.. 14 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xFC, 0x80, 0x80, 0x80, 0x80, 0x80])) threw exception EncodingError: Failed to execute 'deco de' on 'TextDecoder': The encoded data was not valid..
15 FAIL new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0x00])) s hould throw an exception. Was . 15 FAIL new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0x00])) s hould throw an exception. Was .
16 FAIL new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0x00, 0xd 8])) should throw an exception. Was ���. 16 FAIL new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0x00, 0xd 8])) should throw an exception. Was ���.
17 FAIL new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0x00, 0xd 8, 0x00, 0x00])) should throw an exception. Was ���\0. 17 FAIL new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0x00, 0xd 8, 0x00, 0x00])) should throw an exception. Was ���\0.
18 FAIL new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0x00, 0xd c, 0x00, 0x00])) should throw an exception. Was ���\0. 18 FAIL new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0x00, 0xd c, 0x00, 0x00])) should throw an exception. Was ���\0.
19 FAIL new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0x00, 0xd c, 0x00, 0xd8])) should throw an exception. Was ������. 19 FAIL new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0x00, 0xd c, 0x00, 0xd8])) should throw an exception. Was ������.
20 PASS successfullyParsed is true 20 PASS successfullyParsed is true
21 21
22 TEST COMPLETE 22 TEST COMPLETE
23 23
OLDNEW
« no previous file with comments | « LayoutTests/fast/encoding/api/end-of-file-expected.txt ('k') | LayoutTests/fast/events/message-port-clone.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698