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

Unified Diff: LayoutTests/fast/encoding/api/ascii-supersets-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, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/encoding/api/ascii-supersets.html ('k') | LayoutTests/fast/encoding/api/basics.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/encoding/api/ascii-supersets-expected.txt
diff --git a/LayoutTests/fast/encoding/api/ascii-supersets-expected.txt b/LayoutTests/fast/encoding/api/ascii-supersets-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..21922acbeae22a30950c7f449d0d22bdf7baf3a6
--- /dev/null
+++ b/LayoutTests/fast/encoding/api/ascii-supersets-expected.txt
@@ -0,0 +1,124 @@
+Supersets of ASCII decode ASCII correctly
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+decoder = new TextDecoder('utf-8')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('ibm864')
+decoded = decoder.decode(new Uint8Array(bytes))
+FAIL encodeURIComponent(string) should be %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%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%5E_%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.
+decoder = new TextDecoder('ibm866')
+FAIL decoder = new TextDecoder('ibm866') threw exception TypeError: Type error
+decoded = decoder.decode(new Uint8Array(bytes))
+FAIL encodeURIComponent(string) should be %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%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%5E_%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.
+decoder = new TextDecoder('iso-8859-2')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('iso-8859-3')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('iso-8859-4')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('iso-8859-5')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('iso-8859-6')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('iso-8859-7')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('iso-8859-8')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('iso-8859-10')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('iso-8859-13')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('iso-8859-14')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('iso-8859-15')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('iso-8859-16')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('koi8-r')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('koi8-u')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('macintosh')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('windows-874')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('windows-1250')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('windows-1251')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('windows-1252')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('windows-1253')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('windows-1254')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('windows-1255')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('windows-1256')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('windows-1257')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('windows-1258')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('x-mac-cyrillic')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('gbk')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('gb18030')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('hz-gb-2312')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('big5')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('euc-jp')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('iso-2022-jp')
+decoded = decoder.decode(new Uint8Array(bytes))
+FAIL encodeURIComponent(string) should be %00%01%02%03%04%05%06%07%08%09%0A%0B%0C%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%5B%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%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B%5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%7F.
+decoder = new TextDecoder('shift_jis')
+decoded = decoder.decode(new Uint8Array(bytes))
+FAIL encodeURIComponent(string) should be %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%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%5E_%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.
+decoder = new TextDecoder('euc-kr')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+decoder = new TextDecoder('iso-2022-kr')
+decoded = decoder.decode(new Uint8Array(bytes))
+PASS encodeURIComponent(string) is encodeURIComponent(decoded)
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/encoding/api/ascii-supersets.html ('k') | LayoutTests/fast/encoding/api/basics.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698