OLD | NEW |
---|---|
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Notifications: The "tag" property is able to replace existing notific ations.</title> | 4 <title>Notifications: The "tag" property is able to replace existing notific ations.</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 can be replaced using the "tag" | 12 // Tests that Document-bound notifications can be replaced using the "tag" |
12 // property in the constructor's options. When the test is being ran | 13 // property in the constructor's options. When the test is being ran |
13 // manually, grant Notification permission first and verify that only a | 14 // manually, grant Notification permission first and verify that only a |
14 // single notification will be shown at the end of the test. | 15 // single notification will be shown at the end of the test. |
15 if (window.testRunner) | 16 PermissionsHelper.setPermission('notifications', 'granted').then(function( ) { |
16 testRunner.setPermission('notifications', 'granted', location.origin, location.origin); | 17 var script = document.createElement('script'); |
mlamouri (slow - plz ping)
2015/08/31 16:31:42
.. and this one.
| |
18 script.src = 'resources/update-event-test.js'; | |
19 document.body.appendChild(script); | |
johnme
2015/08/26 12:27:32
I wonder if this is a common enough use case to ad
mlamouri (slow - plz ping)
2015/08/31 16:31:42
Yeah, no need to do that unless it becomes a trend
| |
20 }); | |
17 </script> | 21 </script> |
18 <script src="resources/update-event-test.js"></script> | |
19 </body> | 22 </body> |
20 </html> | 23 </html> |
OLD | NEW |