tor-browser

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

test_consoleEmptyStack.html (629B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <meta charset="UTF-8">
      5  <title>Test for empty stack in console</title>
      6  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      7  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      8 </head>
      9 <body>
     10 <script type="application/javascript">
     11 SimpleTest.waitForExplicitFinish();
     12 
     13 window.setTimeout(console.log.bind(console), 0, "xyz");
     14 
     15 window.addEventListener("fake", console.log.bind(console, "xyz"));
     16 
     17 window.addEventListener("fake", function() {
     18  ok(true, "Still alive");
     19  SimpleTest.finish();
     20 });
     21 
     22 window.dispatchEvent(new Event("fake"));
     23 </script>
     24 </pre>
     25 </body>
     26 </html>