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

Unified Diff: LayoutTests/fast/encoding/char-decoding.html

Issue 265973003: Implement "replacement" text encoding. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Request rebaseline the temporary chaset-replacement output Created 6 years, 7 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/TestExpectations ('k') | LayoutTests/fast/encoding/char-decoding-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/encoding/char-decoding.html
diff --git a/LayoutTests/fast/encoding/char-decoding.html b/LayoutTests/fast/encoding/char-decoding.html
index b6eb4f201c3b0c28e0546466c8587e1be9f9ed23..5ff69a4a5ba355a8a16dd46979aaa1a69e730b17 100644
--- a/LayoutTests/fast/encoding/char-decoding.html
+++ b/LayoutTests/fast/encoding/char-decoding.html
@@ -29,12 +29,12 @@ var korean = {
'KSC5601', 'KSC_5601'],
encoded: ['%A2%E6', '%A1%A4', '%A1%A9', '%A1%AA', '%A1%AD', '%A2%A6',
'%A2%C1', '%1A', '%1C', '%8F%A1', '%B4%D3', '%A2%41'],
- unicode: ['U+20AC', 'U+00B7', 'U+00AD', 'U+2015', 'U+223C', 'U+FF5E',
- 'U+2299', 'U+001A', 'U+001C', 'U+B8EA', 'U+B2D2', 'U+C910']
+ unicode: ['U+20AC', 'U+00B7', 'U+00AD', 'U+2015', 'U+223C', 'U+FF5E',
+ 'U+2299', 'U+001A', 'U+001C', 'U+B8EA', 'U+B2D2', 'U+C910']
};
batchTestDecode(korean);
-
+
// Test that ISO-8859-9 (Turkish) is upgraded to windows-1254 with Euro symbol.
var turkish = {
encodings: ['iso-8859-9', 'latin5', 'windows-1254'],
@@ -44,7 +44,7 @@ var turkish = {
batchTestDecode(turkish);
-// FIXME: Have to add tests for Euro and a few new characters added to ISO-8859-x
+// FIXME: Have to add tests for Euro and a few new characters added to ISO-8859-x
// that are NOT subsets of the corresponding Windows codepages. For instance,
// ISO-8859-7:2003 has Euro at 0xA4 and a couple of other new characters.
// ICU 3.8.x or later has them. Perhaps, we need to have a separate test that
@@ -105,6 +105,13 @@ testDecode('csUnicode', '%69%D8%D6%DE', 'U+D869/U+DED6');
testDecode('UTF-16BE', '%D8%69%DE%D6', 'U+D869/U+DED6');
testDecode('unicodeFFFE', '%D8%69%DE%D6', 'U+D869/U+DED6');
+// Replacement encodings should decode as replacement (U+FFFD) then EOF
+testDecode("csiso2022kr", "%41%42%43%61%62%63%31%32%33%A0", "U+FFFD");
+testDecode("hz-gb-2312", "%41%42%43%61%62%63%31%32%33%A0", "U+FFFD");
+testDecode("iso-2022-cn", "%41%42%43%61%62%63%31%32%33%A0", "U+FFFD");
+testDecode("iso-2022-cn-ext", "%41%42%43%61%62%63%31%32%33%A0", "U+FFFD");
+testDecode("iso-2022-kr", "%41%42%43%61%62%63%31%32%33%A0", "U+FFFD");
+
</script>
</body>
</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/encoding/char-decoding-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698