Home | History | Annotate | Download | only in encoding
      1 <html>
      2 <head>
      3 <link rel="stylesheet" href="../js/resources/js-test-style.css">
      4 <script src="../js/resources/js-test-pre.js"></script>
      5 <script src="../js/resources/js-test-post-function.js"></script>
      6 <script src="resources/char-encoding-utils.js"></script>
      7 </head>
      8 <body>
      9 <p id="description"></p>
     10 <div id="console"></div>
     11 <form id="form" method="GET" target="subframe"><input type="text" id="text" name="text"></form>
     12 <iframe id="subframe" name="subframe"></iframe>
     13 <script>
     14 
     15 
     16 var charsets = new Array;
     17 var unicodes = new Array;
     18 var expectedResults = new Array;
     19 
     20 var results = new Object;
     21 
     22 var i = 0;
     23 
     24 // Legacy Mac encodings.
     25 testEncode('mac', 'U+221A', '%C3');
     26 testEncode('macintosh', 'U+221A', '%C3');
     27 testEncode('MacRoman', 'U+221A', '%C3');
     28 testEncode('x-mac-greek', 'U+0391', '%B0');
     29 testEncode('x-mac-cyrillic', 'U+0410', '%80');
     30 testEncode('mac-cyrillic', 'U+0410', '%80');
     31 testEncode('x-mac-centraleurroman', 'U+0100', '%81');
     32 testEncode('x-mac-turkish', 'U+00C5', '%81');
     33 
     34 if (window.layoutTestController)
     35     layoutTestController.waitUntilDone();
     36 runTest();
     37 
     38 successfullyParsed = true;
     39 
     40 </script>
     41 </body>
     42 </html>
     43