parser/htmlparser/tests/mochitest/test_bug716579.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/parser/htmlparser/tests/mochitest/test_bug716579.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,44 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=716579
     1.8 +-->
     1.9 +<head>
    1.10 +  <meta charset="windows-1251">
    1.11 +  <title>Test for Bug 716579</title>
    1.12 +  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    1.13 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    1.14 +</head>
    1.15 +<body>
    1.16 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=716579">Mozilla Bug 716579</a>
    1.17 +<p id="display"></p>
    1.18 +<pre id="test">
    1.19 +<script type="application/javascript">
    1.20 +
    1.21 +/** Test for Bug 716579 **/
    1.22 +
    1.23 +var html8 = "FAIL";
    1.24 +var html16 = "FAIL";
    1.25 +var xml8 = "FAIL";
    1.26 +var xml16 = "FAIL"; 
    1.27 +
    1.28 +SimpleTest.waitForExplicitFinish();
    1.29 +
    1.30 +window.onload = function() {
    1.31 +  is(html8, "\u20AC", "HTML UTF-8 failed.");
    1.32 +  is(html16, "\u20AC", "HTML UTF-16 failed.");
    1.33 +  is(xml8, "\u20AC", "XML UTF-8 failed.");
    1.34 +  is(xml16, "\u20AC", "XML UTF-16 failed.");
    1.35 +  SimpleTest.finish();
    1.36 +};
    1.37 +
    1.38 +</script>
    1.39 +</pre>
    1.40 +<div id="content" style="display: none">
    1.41 +<iframe src="file_bug716579-8.html"></iframe>  
    1.42 +<iframe src="file_bug716579-16.html"></iframe>  
    1.43 +<iframe src="file_bug716579-8.xhtml"></iframe>  
    1.44 +<iframe src="file_bug716579-16.xhtml"></iframe>  
    1.45 +</div>
    1.46 +</body>
    1.47 +</html>

mercurial