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

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

Issue 120063002: Improve modules' TypeError exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
OLDNEW
1 Supersets of ASCII decode ASCII correctly 1 Supersets of ASCII decode ASCII correctly
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 decoder = new TextDecoder("ibm866") 6 decoder = new TextDecoder("ibm866")
7 FAIL decoder = new TextDecoder("ibm866") threw exception TypeError: Type error 7 FAIL decoder = new TextDecoder("ibm866") threw exception TypeError: Failed to co nstruct 'TextDecoder': The encoding label provided ('ibm866') is invalid.
8 decoder = new TextDecoder("iso-8859-2") 8 decoder = new TextDecoder("iso-8859-2")
9 decoded = decoder.decode(new Uint8Array(bytes)) 9 decoded = decoder.decode(new Uint8Array(bytes))
10 PASS encodeURIComponent(string) is encodeURIComponent(decoded) 10 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
11 decoder = new TextDecoder("iso-8859-3") 11 decoder = new TextDecoder("iso-8859-3")
12 decoded = decoder.decode(new Uint8Array(bytes)) 12 decoded = decoder.decode(new Uint8Array(bytes))
13 PASS encodeURIComponent(string) is encodeURIComponent(decoded) 13 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
14 decoder = new TextDecoder("iso-8859-4") 14 decoder = new TextDecoder("iso-8859-4")
15 decoded = decoder.decode(new Uint8Array(bytes)) 15 decoded = decoder.decode(new Uint8Array(bytes))
16 PASS encodeURIComponent(string) is encodeURIComponent(decoded) 16 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
17 decoder = new TextDecoder("iso-8859-5") 17 decoder = new TextDecoder("iso-8859-5")
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 decoder = new TextDecoder("iso-2022-kr") 113 decoder = new TextDecoder("iso-2022-kr")
114 decoded = decoder.decode(new Uint8Array(bytes)) 114 decoded = decoder.decode(new Uint8Array(bytes))
115 PASS encodeURIComponent(string) is encodeURIComponent(decoded) 115 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
116 decoder = new TextDecoder("x-user-defined") 116 decoder = new TextDecoder("x-user-defined")
117 decoded = decoder.decode(new Uint8Array(bytes)) 117 decoded = decoder.decode(new Uint8Array(bytes))
118 PASS encodeURIComponent(string) is encodeURIComponent(decoded) 118 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
119 PASS successfullyParsed is true 119 PASS successfullyParsed is true
120 120
121 TEST COMPLETE 121 TEST COMPLETE
122 122
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/encoding/api/encoding-labels-expected.txt » ('j') | Source/modules/encoding/TextEncoder.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698