OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p> | 7 <p> |
8 Tests that notifications will not be displayed when no permission | 8 Tests that notifications will not be displayed when no permission |
9 has been granted. The text "notification.onerror fired" should be | 9 has been granted. The text "notification.onerror fired" should be |
10 displayed below. | 10 displayed below. |
11 </p> | 11 </p> |
12 <div id="console"></div> | 12 <div id="console"></div> |
13 <script src="resources/notification-display.js"></script> | 13 <script src="resources/notification-display.js"></script> |
14 <script> | 14 <script> |
| 15 var jsTestIsAsync = true; |
15 if (window.testRunner) { | 16 if (window.testRunner) { |
16 testRunner.dumpAsText(); | 17 testRunner.dumpAsText(); |
17 testRunner.waitUntilDone(); | 18 testRunner.waitUntilDone(); |
18 testRunner.clearWebNotificationPermissions(); | 19 testRunner.clearWebNotificationPermissions(); |
19 } | 20 } |
20 | 21 |
21 runTest(); | 22 runTest(); |
22 </script> | 23 </script> |
23 </body> | 24 </body> |
24 </html> | 25 </html> |
OLD | NEW |