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

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

Issue 145973021: Implement "replacement" text encoding. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Verify replacement name Created 6 years, 10 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 Verify replacement encoding behavior
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS new TextEncoder('replacement') threw exception TypeError: Failed to constru ct 'TextEncoder': The encoding label provided ('replacement') is invalid..
7 PASS new TextDecoder('replacement') threw exception TypeError: Failed to constru ct 'TextDecoder': The encoding label provided ('replacement') is invalid..
8
9 label: csiso2022kr
10
11 PASS new TextEncoder('csiso2022kr') threw exception TypeError: Failed to constru ct 'TextEncoder': The encoding provided ('csiso2022kr') is not one of 'utf-8', ' utf-16', or 'utf-16be'..
12 decoder = new TextDecoder('csiso2022kr')
13 PASS decoder.encoding is "replacement"
14 PASS decoder.decode(new Uint8Array([0x41,0x42,0x43])) is ""
15 decoder = new TextDecoder('csiso2022kr', {fatal: true})
16 PASS decoder.encoding is "replacement"
17 PASS decoder.decode(new Uint8Array([0x41,0x42,0x43])) threw exception EncodingEr ror: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid ..
18
19 label: iso-2022-cn
20
21 PASS new TextEncoder('iso-2022-cn') threw exception TypeError: Failed to constru ct 'TextEncoder': The encoding provided ('iso-2022-cn') is not one of 'utf-8', ' utf-16', or 'utf-16be'..
22 decoder = new TextDecoder('iso-2022-cn')
23 PASS decoder.encoding is "replacement"
24 PASS decoder.decode(new Uint8Array([0x41,0x42,0x43])) is ""
25 decoder = new TextDecoder('iso-2022-cn', {fatal: true})
26 PASS decoder.encoding is "replacement"
27 PASS decoder.decode(new Uint8Array([0x41,0x42,0x43])) threw exception EncodingEr ror: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid ..
28
29 label: iso-2022-cn-ext
30
31 PASS new TextEncoder('iso-2022-cn-ext') threw exception TypeError: Failed to con struct 'TextEncoder': The encoding provided ('iso-2022-cn-ext') is not one of 'u tf-8', 'utf-16', or 'utf-16be'..
32 decoder = new TextDecoder('iso-2022-cn-ext')
33 PASS decoder.encoding is "replacement"
34 PASS decoder.decode(new Uint8Array([0x41,0x42,0x43])) is ""
35 decoder = new TextDecoder('iso-2022-cn-ext', {fatal: true})
36 PASS decoder.encoding is "replacement"
37 PASS decoder.decode(new Uint8Array([0x41,0x42,0x43])) threw exception EncodingEr ror: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid ..
38
39 label: iso-2022-kr
40
41 PASS new TextEncoder('iso-2022-kr') threw exception TypeError: Failed to constru ct 'TextEncoder': The encoding provided ('iso-2022-kr') is not one of 'utf-8', ' utf-16', or 'utf-16be'..
42 decoder = new TextDecoder('iso-2022-kr')
43 PASS decoder.encoding is "replacement"
44 PASS decoder.decode(new Uint8Array([0x41,0x42,0x43])) is ""
45 decoder = new TextDecoder('iso-2022-kr', {fatal: true})
46 PASS decoder.encoding is "replacement"
47 PASS decoder.decode(new Uint8Array([0x41,0x42,0x43])) threw exception EncodingEr ror: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid ..
48 PASS successfullyParsed is true
49
50 TEST COMPLETE
51
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698