tor-browser

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

test_bug405178.html (1134B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=405178
      5 -->
      6 <head>
      7  <title>Test for Bug 405178</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=405178">Mozilla Bug 405178</a>
     13 <p id="display"><div id="div" style="column-width: 10px;">&#23377;&#1741; </div></p>
     14 <div id="content" style="display: none">
     15  
     16 </div>
     17 <pre id="test">
     18 <script class="testbody" type="text/javascript">
     19 
     20 /** Test for Bug 405178 */
     21 
     22 var div, textNode;
     23 
     24 function boom()
     25 {
     26  div = document.getElementById("div");
     27  textNode = div.firstChild;
     28 
     29  div.removeChild(textNode);
     30  setTimeout(boom2, 200);
     31 }
     32 
     33 function boom2()
     34 {
     35  textNode.data = "";
     36  div.appendChild(document.createTextNode("X"))
     37  var foo = document.body.offsetHeight;
     38 
     39  ok(true, "Test is successful if we get here without crashing");
     40  SimpleTest.finish();
     41 }
     42 
     43 SimpleTest.waitForExplicitFinish();
     44 SimpleTest.requestFlakyTimeout("untriaged");
     45 addLoadEvent(boom);
     46 
     47 </script>
     48 </pre>
     49 </body>
     50 </html>