dom/tests/mochitest/notification/test_bug931307.html

branch
TOR_BUG_9701
changeset 8
97036ab72558
equal deleted inserted replaced
-1:000000000000 0:efe051dd5175
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>Bug 931307</title>
8 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
10 </head>
11 <body>
12 <pre id="test">
13 <script type="application/javascript"><!--
14
15 SimpleTest.waitForExplicitFinish();
16 new Notification("");
17 var promise = Notification.get();
18 promise.then(
19 function onSuccess() {
20 ok(true, "No crash!");
21 SimpleTest.finish();
22 },
23 function onFailure() {
24 ok(false, "Should not get an error in promise callback");
25 }
26 );
27
28 </script>
29 </pre>
30 </body>
31 </html>

mercurial