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 <script src="resources/worker-tools.js"></script> |
5 </head> | 6 </head> |
6 <body> | 7 <body> |
7 <p> | 8 <p> |
8 Tests that it is possible to replace existing notifications using | 9 Tests that it is possible to replace existing notifications using |
9 the "tag" property of a Web Notification object. When running this | 10 the "tag" property of a Web Notification object from the shared |
10 test manually, verify that the title of the shown notification is | 11 worker context. When running this test manually, verify that the |
11 updated to read "Notification 2". | 12 title of the shown notification is updated to read "Notification 2". |
12 </p> | 13 </p> |
13 <div id="console"></div> | 14 <div id="console"></div> |
14 <script src="resources/notification-replace.js"></script> | |
15 <script> | 15 <script> |
16 if (window.testRunner) { | 16 if (window.testRunner) { |
17 testRunner.grantWebNotificationPermission("file://", true); | 17 testRunner.grantWebNotificationPermission("file://", true); |
18 testRunner.waitUntilDone(); | 18 testRunner.waitUntilDone(); |
19 } | 19 } |
20 | 20 |
21 runTest(); | 21 startWorkerTest('resources/notification-replace.js', 'shared'); |
22 </script> | 22 </script> |
23 </body> | 23 </body> |
24 </html> | 24 </html> |
OLD | NEW |