Index: LayoutTests/fast/notifications/notification-replace-shared-worker.html |
diff --git a/LayoutTests/fast/notifications/notification-replace.html b/LayoutTests/fast/notifications/notification-replace-shared-worker.html |
similarity index 56% |
copy from LayoutTests/fast/notifications/notification-replace.html |
copy to LayoutTests/fast/notifications/notification-replace-shared-worker.html |
index c569bcb093a33ba3700cb6c55ef65d46c2dd154d..8f4e8c07374f97cfd236973fcbb837670f7717b6 100644 |
--- a/LayoutTests/fast/notifications/notification-replace.html |
+++ b/LayoutTests/fast/notifications/notification-replace-shared-worker.html |
@@ -2,23 +2,23 @@ |
<html> |
<head> |
<script src="../../resources/js-test.js"></script> |
+ <script src="resources/worker-tools.js"></script> |
</head> |
<body> |
<p> |
Tests that it is possible to replace existing notifications using |
- the "tag" property of a Web Notification object. When running this |
- test manually, verify that the title of the shown notification is |
- updated to read "Notification 2". |
+ the "tag" property of a Web Notification object from the shared |
+ worker context. When running this test manually, verify that the |
+ title of the shown notification is updated to read "Notification 2". |
</p> |
<div id="console"></div> |
- <script src="resources/notification-replace.js"></script> |
<script> |
if (window.testRunner) { |
testRunner.grantWebNotificationPermission("file://", true); |
testRunner.waitUntilDone(); |
} |
- runTest(); |
+ startWorkerTest('resources/notification-replace.js', 'shared'); |
</script> |
</body> |
</html> |