tor-browser

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

test_promise_uncatchable_exception.html (831B)


      1 <!--
      2  Any copyright is dedicated to the Public Domain.
      3  http://creativecommons.org/publicdomain/zero/1.0/
      4 -->
      5 <html>
      6 <head>
      7  <title>Promise - uncatchable exceptions</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 <p id="display"></p>
     13 <div id="content" style="display: none">
     14 
     15 </div>
     16 <pre id="test">
     17 <script type="application/javascript">
     18 
     19 onmessage = function() {
     20  ok(true, "finished");
     21  SimpleTest.finish();
     22 };
     23 
     24 function go() {
     25  var script = document.createElement("script");
     26  script.src = "promise_uncatchable_exception.js";
     27  document.body.appendChild(script);
     28 }
     29 
     30 SimpleTest.waitForExplicitFinish();
     31 SpecialPowers.pushPrefEnv({set: [["dom.expose_test_interfaces", true]]}, go);
     32 </script>
     33 </pre>
     34 </body>
     35 </html>