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

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

Issue 145973021: Implement "replacement" text encoding. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Replacement codec should emit U+FFFD Created 6 years, 9 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 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: Failed to co nstruct 'TextDecoder': The encoding label provided ('ibm866') is invalid. 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)
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 PASS encodeURIComponent(string) is encodeURIComponent(decoded) 103 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
104 decoder = new TextDecoder("iso-2022-jp") 104 decoder = new TextDecoder("iso-2022-jp")
105 decoded = decoder.decode(new Uint8Array(bytes)) 105 decoded = decoder.decode(new Uint8Array(bytes))
106 FAIL encodeURIComponent(string) should be %00%01%02%03%04%05%06%07%08%09%0A%0B%0 C%0D%EF%BF%BD%EF%BF%BD%10%11%12%13%14%15%16%17%18%19%1A%1C%1D%1E%1F%20!%22%23%24 %25%26'()*%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5 B%5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%7F. Was %00%01%02%03%04%05%06 %07%08%09%0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1C%1D%1E%1F%20!%22% 23%24%25%26'()*%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVW XYZ%5B%5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%7F. 106 FAIL encodeURIComponent(string) should be %00%01%02%03%04%05%06%07%08%09%0A%0B%0 C%0D%EF%BF%BD%EF%BF%BD%10%11%12%13%14%15%16%17%18%19%1A%1C%1D%1E%1F%20!%22%23%24 %25%26'()*%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5 B%5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%7F. Was %00%01%02%03%04%05%06 %07%08%09%0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1C%1D%1E%1F%20!%22% 23%24%25%26'()*%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVW XYZ%5B%5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%7F.
107 decoder = new TextDecoder("shift_jis") 107 decoder = new TextDecoder("shift_jis")
108 decoded = decoder.decode(new Uint8Array(bytes)) 108 decoded = decoder.decode(new Uint8Array(bytes))
109 FAIL encodeURIComponent(string) should be %00%01%02%03%04%05%06%07%08%09%0A%0B%0 C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1C%1B%7F%1D%1E%1F%20!%22%23%24%25%26'() *%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B%5C%5D%5 E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%1A. Was %00%01%02%03%04%05%06%07%08%09 %0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%20!%22%23%24% 25%26'()*%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B %5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%7F. 109 FAIL encodeURIComponent(string) should be %00%01%02%03%04%05%06%07%08%09%0A%0B%0 C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1C%1B%7F%1D%1E%1F%20!%22%23%24%25%26'() *%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B%5C%5D%5 E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%1A. Was %00%01%02%03%04%05%06%07%08%09 %0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%20!%22%23%24% 25%26'()*%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B %5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%7F.
110 decoder = new TextDecoder("euc-kr") 110 decoder = new TextDecoder("euc-kr")
111 decoded = decoder.decode(new Uint8Array(bytes)) 111 decoded = decoder.decode(new Uint8Array(bytes))
112 PASS encodeURIComponent(string) is encodeURIComponent(decoded) 112 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
113 decoder = new TextDecoder("iso-2022-kr")
114 decoded = decoder.decode(new Uint8Array(bytes))
115 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
116 decoder = new TextDecoder("x-user-defined") 113 decoder = new TextDecoder("x-user-defined")
117 decoded = decoder.decode(new Uint8Array(bytes)) 114 decoded = decoder.decode(new Uint8Array(bytes))
118 PASS encodeURIComponent(string) is encodeURIComponent(decoded) 115 PASS encodeURIComponent(string) is encodeURIComponent(decoded)
119 PASS successfullyParsed is true 116 PASS successfullyParsed is true
120 117
121 TEST COMPLETE 118 TEST COMPLETE
122 119
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/encoding/api/encoding-labels.html » ('j') | Source/wtf/text/TextCodecReplacement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698