parser/htmlparser/tests/mochitest/test_bug716579.html

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:867d10f8bb93
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=716579
5 -->
6 <head>
7 <meta charset="windows-1251">
8 <title>Test for Bug 716579</title>
9 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=716579">Mozilla Bug 716579</a>
14 <p id="display"></p>
15 <pre id="test">
16 <script type="application/javascript">
17
18 /** Test for Bug 716579 **/
19
20 var html8 = "FAIL";
21 var html16 = "FAIL";
22 var xml8 = "FAIL";
23 var xml16 = "FAIL";
24
25 SimpleTest.waitForExplicitFinish();
26
27 window.onload = function() {
28 is(html8, "\u20AC", "HTML UTF-8 failed.");
29 is(html16, "\u20AC", "HTML UTF-16 failed.");
30 is(xml8, "\u20AC", "XML UTF-8 failed.");
31 is(xml16, "\u20AC", "XML UTF-16 failed.");
32 SimpleTest.finish();
33 };
34
35 </script>
36 </pre>
37 <div id="content" style="display: none">
38 <iframe src="file_bug716579-8.html"></iframe>
39 <iframe src="file_bug716579-16.html"></iframe>
40 <iframe src="file_bug716579-8.xhtml"></iframe>
41 <iframe src="file_bug716579-16.xhtml"></iframe>
42 </div>
43 </body>
44 </html>

mercurial