blob: 3198865c0c9c867896fe8be8ef5cf67d1dd98792 [file] [log] [blame]
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
<script src="resources/char-encoding-utils.js"></script>
</head>
<body>
<form id="form" method="GET" target="subframe"><input type="text" id="text" name="text"></form>
<iframe id="subframe" name="subframe"></iframe>
<script>
var charsets = new Array;
var unicodes = new Array;
var expectedResults = new Array;
var results = new Object;
var i = 0;
// Legacy Mac encodings.
testEncode('mac', 'U+221A', '%C3');
testEncode('macintosh', 'U+221A', '%C3');
testEncode('MacRoman', 'U+221A', '%C3');
testEncode('x-mac-greek', 'U+0391', '%B0');
testEncode('x-mac-cyrillic', 'U+0410', '%80');
testEncode('mac-cyrillic', 'U+0410', '%80');
testEncode('x-mac-centraleurroman', 'U+0100', '%81');
testEncode('x-mac-turkish', 'U+00C5', '%81');
if (window.testRunner)
testRunner.waitUntilDone();
runTest();
</script>
</body>
</html>