OLD | NEW |
---|---|
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Notifications: Programatically closing a notification should fire the onclose event.</title> | 4 <title>Notifications: Programatically closing a notification should fire the onclose event.</title> |
5 <script src="../resources/testharness.js"></script> | 5 <script src="../resources/testharness.js"></script> |
6 <script src="../resources/testharnessreport.js"></script> | 6 <script src="../resources/testharnessreport.js"></script> |
7 <script src="resources/test-helpers.js"></script> | 7 <script src="resources/test-helpers.js"></script> |
8 <script src="../resources/permissions-helper.js"></script> | |
8 </head> | 9 </head> |
9 <body> | 10 <body> |
10 <script> | 11 <script> |
11 // Tests that Document-bound notifications will fire the onclose event | 12 // Tests that Document-bound notifications will fire the onclose event |
12 // when they have their close() method called. When the test is being ran | 13 // when they have their close() method called. When the test is being ran |
13 // manually, grant Notification permission first. | 14 // manually, grant Notification permission first. |
14 if (window.testRunner) | 15 PermissionsHelper.setPermission('notifications', 'granted').then(function( ) { |
15 testRunner.setPermission('notifications', 'granted', location.origin, location.origin); | 16 var script = document.createElement('script'); |
mlamouri (slow - plz ping)
2015/08/31 16:31:42
I also updated this indentation.
| |
17 script.src = 'resources/close-event-test.js'; | |
18 document.body.appendChild(script); | |
19 }); | |
16 </script> | 20 </script> |
17 <script src="resources/close-event-test.js"></script> | |
18 </body> | 21 </body> |
19 </html> | 22 </html> |
OLD | NEW |