tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_bug380383.html (1050B)


      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 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">
     19  
     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");
     26 
     27  function runTest() {
     28    is($("f2").contentDocument.characterSet, "UTF-8",
     29       "Unexpected charset for f2");
     30  }
     31     
     32  addLoadEvent(runTest);
     33  addLoadEvent(SimpleTest.finish);
     34  SimpleTest.waitForExplicitFinish();
     35 </script>
     36 </pre>
     37 </body>
     38 </html>