content/html/document/test/test_bug380383.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/html/document/test/test_bug380383.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,39 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=380383
     1.8 +-->
     1.9 +<head>
    1.10 +  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    1.11 +  <title>Test for Bug 380383</title>
    1.12 +  <script type="text/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=380383">Mozilla Bug 380383</a>
    1.17 +<p id="display">
    1.18 +  <iframe id="f1" name="f1"></iframe>
    1.19 +  <iframe id="f2" name="f2"></iframe>
    1.20 +</p>
    1.21 +<div id="content" style="display: none">
    1.22 +  
    1.23 +</div>
    1.24 +<pre id="test">
    1.25 +<script class="testbody" type="text/javascript">
    1.26 +  /** Test for Bug 380383 **/
    1.27 +  is($("f1").contentDocument.characterSet, "UTF-8",
    1.28 +     "Unexpected charset for f1");
    1.29 +
    1.30 +  function runTest() {
    1.31 +    is($("f2").contentDocument.characterSet, "UTF-8",
    1.32 +       "Unexpected charset for f2");
    1.33 +  }
    1.34 +     
    1.35 +  addLoadEvent(runTest);
    1.36 +  addLoadEvent(SimpleTest.finish);
    1.37 +  SimpleTest.waitForExplicitFinish();
    1.38 +</script>
    1.39 +</pre>
    1.40 +</body>
    1.41 +</html>
    1.42 +

mercurial