tor-browser

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

test_bug351633-4.html (873B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=351633
      5 -->
      6 <head>
      7  <title>Test for Bug 351633</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>        
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     10 </head>
     11 <body>
     12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=351633">Mozilla Bug 351633</a>
     13 <p id="display">
     14  <iframe name="x" id="x"></iframe>
     15 </p>
     16 <div id="content" style="display: none">
     17  
     18 </div>
     19 <pre id="test">
     20 <script class="testbody" type="text/javascript">
     21 
     22 /** Test for Bug 351633 */
     23 
     24 var str;
     25 str = "a";
     26 window.x.location.href =
     27  "javascript: parent.str += 'c'; void(parent.finishTest());"
     28 str += "b";
     29 
     30 SimpleTest.waitForExplicitFinish();
     31 
     32 function finishTest() {
     33  is (str, "abc", "Unexpected ordering");
     34  SimpleTest.finish();
     35 }
     36 </script>
     37 </pre>
     38 </body>
     39 </html>