| 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 Notification.close() closes the notification, and the | 8 Tests that Notification.close() closes the notification when called |
| 9 Notification.onclose event gets called. | 9 from a document context, causing the Notification.onclose event to b
e |
| 10 invoked. |
| 10 </p> | 11 </p> |
| 11 <div id="console"></div> | 12 <div id="console"></div> |
| 12 <script src="resources/notification-close.js"></script> | 13 <script src="resources/notification-close.js"></script> |
| 13 <script> | 14 <script> |
| 15 var jsTestIsAsync = true; |
| 14 if (window.testRunner) { | 16 if (window.testRunner) { |
| 15 testRunner.grantWebNotificationPermission("file://", true); | 17 testRunner.grantWebNotificationPermission("file://", true); |
| 16 testRunner.waitUntilDone(); | 18 testRunner.waitUntilDone(); |
| 17 } | 19 } |
| 18 | 20 |
| 19 runTest(); | 21 runTest(); |
| 20 </script> | 22 </script> |
| 21 </body> | 23 </body> |
| 22 </html> | 24 </html> |
| OLD | NEW |