tor-browser

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

test_bug649012.html (1069B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=649012
      5 -->
      6 <head>
      7  <title>Test for Bug 649012</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <script src="/tests/SimpleTest/EventUtils.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=649012">Mozilla Bug 649012</a>
     14 <p id="display"></p>
     15 <div id="content">
     16 </div>
     17 <pre id="test">
     18 <script type="application/javascript">
     19 
     20 /** Test for Bug 649012 */
     21 SimpleTest.waitForExplicitFinish();
     22 addLoadEvent(function() {
     23  // Test that setTimeout(f, 0) doesn't raise an error
     24  setTimeout(function() {
     25    // Test that setTimeout(f, t) where t > 0 doesn't raise an error if we've used
     26    // SimpleTest.requestFlakyTimeout
     27    SimpleTest.requestFlakyTimeout("Just testing to make sure things work.  I would never do this in real life of course!");
     28    setTimeout(function() {
     29      SimpleTest.finish();
     30    }, 1);
     31  }, 0);
     32 });
     33 
     34 </script>
     35 </pre>
     36 </body>
     37 </html>