Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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"><!--
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 );
28 </script>
29 </pre>
30 </body>
31 </html>