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

Side by Side Diff: LayoutTests/fast/encoding/char-encoding.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <script src="resources/char-encoding-utils.js"></script> 4 <script src="resources/char-encoding-utils.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <form id="form" method="GET" target="subframe"><input type="text" id="text" name ="text"></form> 7 <form id="form" method="GET" target="subframe"><input type="text" id="text" name ="text"></form>
8 <iframe id="subframe" name="subframe"></iframe> 8 <iframe id="subframe" name="subframe"></iframe>
9 <script> 9 <script>
10 10
(...skipping 22 matching lines...) Expand all
33 testEncode('GBK', 'U+20AC', '%80'); 33 testEncode('GBK', 'U+20AC', '%80');
34 testEncode('gb2312', 'U+20AC', '%80'); 34 testEncode('gb2312', 'U+20AC', '%80');
35 testEncode('GB_2312-80', 'U+20AC', '%80'); 35 testEncode('GB_2312-80', 'U+20AC', '%80');
36 testEncode('EUC-CN', 'U+20AC', '%80'); 36 testEncode('EUC-CN', 'U+20AC', '%80');
37 //Misc symbols from TEC specific GBK translation 37 //Misc symbols from TEC specific GBK translation
38 testEncode('GBK', 'U+01F9', '%A8%BF'); 38 testEncode('GBK', 'U+01F9', '%A8%BF');
39 testEncode('GBK', 'U+1E3F', '%A8%BC'); 39 testEncode('GBK', 'U+1E3F', '%A8%BC');
40 testEncode('GBK', 'U+22EF', '%A1%AD'); 40 testEncode('GBK', 'U+22EF', '%A1%AD');
41 testEncode('GBK', 'U+301C', '%A1%AB'); 41 testEncode('GBK', 'U+301C', '%A1%AB');
42 42
43 // Replacement encodings - should encode as UTF-8
44 testEncode("csiso2022kr", "U+00A0", "%C2%A0");
45 testEncode("hz-gb-2312", "U+00A0", "%C2%A0");
46 testEncode("iso-2022-cn", "U+00A0", "%C2%A0");
47 testEncode("iso-2022-cn-ext", "U+00A0", "%C2%A0");
48 testEncode("iso-2022-kr", "U+00A0", "%C2%A0");
49
43 // Turning on this test causes a download to occur. FIXME: A bug? 50 // Turning on this test causes a download to occur. FIXME: A bug?
44 // testEncode('UTF-8', 'U+221A', '%E2%88%9A'); 51 // testEncode('UTF-8', 'U+221A', '%E2%88%9A');
45 52
46 if (window.testRunner) 53 if (window.testRunner)
47 testRunner.waitUntilDone(); 54 testRunner.waitUntilDone();
48 runTest(); 55 runTest();
49 56
50 </script> 57 </script>
51 </body> 58 </body>
52 </html> 59 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/encoding/char-decoding-expected.txt ('k') | LayoutTests/fast/encoding/char-encoding-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698