summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/encoding/char-decoding-mac.html
blob: e574e458f5723ac02c4753fdd9563aaac8ffc187 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<html>
<head>
<link rel="stylesheet" href="../js/resources/js-test-style.css">
<script src="../js/resources/js-test-pre.js"></script>
<script src="resources/char-decoding-utils.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>

description("This tests decoding characters in various character sets.");

// Legacy Mac encodings.
testDecode('mac', '%C3', 'U+221A');
testDecode('macintosh', '%C3', 'U+221A');
testDecode('MacRoman', '%C3', 'U+221A');
testDecode('x-mac-greek', '%B0', 'U+0391');
testDecode('x-mac-ukrainian', '%80', 'U+0410');
testDecode('x-mac-cyrillic', '%80', 'U+0410');
testDecode('mac-cyrillic', '%80', 'U+0410');
testDecode('x-mac-centraleurroman', '%81', 'U+0100');
testDecode('x-mac-ce', '%81', 'U+0100');
testDecode('x-mac-turkish', '%81', 'U+00C5');

successfullyParsed = true;

</script>
<script src="../js/resources/js-test-post.js"></script>
</body>
</html>