summaryrefslogtreecommitdiffstats
path: root/dom/promise/tests/test_promise_uncatchable_exception.html
blob: b8e4bdb103f8c989eb0c3af06796582dad1c16ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!--
  Any copyright is dedicated to the Public Domain.
  http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
<head>
  <title>Promise - uncatchable exceptions</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<p id="display"></p>
<div id="content" style="display: none">

</div>
<pre id="test">
<script type="application/javascript">

onmessage = function() {
  ok(true, "finished");
  SimpleTest.finish();
};

function go() {
  var script = document.createElement("script");
  script.src = "promise_uncatchable_exception.js";
  document.body.appendChild(script);
}

SimpleTest.waitForExplicitFinish();
SpecialPowers.pushPrefEnv({set: [["dom.expose_test_interfaces", true]]}, go);
</script>
</pre>
</body>
</html>