content/html/document/test/test_bug380383.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=380383
     5 -->
     6 <head>
     7   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
     8   <title>Test for Bug 380383</title>
     9   <script type="text/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=380383">Mozilla Bug 380383</a>
    14 <p id="display">
    15   <iframe id="f1" name="f1"></iframe>
    16   <iframe id="f2" name="f2"></iframe>
    17 </p>
    18 <div id="content" style="display: none">
    20 </div>
    21 <pre id="test">
    22 <script class="testbody" type="text/javascript">
    23   /** Test for Bug 380383 **/
    24   is($("f1").contentDocument.characterSet, "UTF-8",
    25      "Unexpected charset for f1");
    27   function runTest() {
    28     is($("f2").contentDocument.characterSet, "UTF-8",
    29        "Unexpected charset for f2");
    30   }
    32   addLoadEvent(runTest);
    33   addLoadEvent(SimpleTest.finish);
    34   SimpleTest.waitForExplicitFinish();
    35 </script>
    36 </pre>
    37 </body>
    38 </html>

mercurial