Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / notifications / update-shared-worker.html
blobe6c8f5c188915120991631dd306a767e7a592a84
1 <!doctype html>
2 <html>
3 <head>
4 <title>Notifications: The "tag" property is able to replace existing notifications.</title>
5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script>
7 <script src="resources/test-helpers.js"></script>
8 </head>
9 <body>
10 <script>
11 // Tests that Shared Worker-bound notifications can be replaced using the
12 // "tag" property in the constructor's options. When the test is being ran
13 // manually, grant Notification permission first and verify that only a
14 // single notification will be shown at the end of the test.
15 if (window.testRunner)
16 testRunner.setPermission('notifications', 'granted', location.origin, location.origin);
18 sharedWorkerTest("resources/update-event-test.js");
19 </script>
20 </body>
21 </html>