Index: LayoutTests/fast/notifications/notification-click-shared-worker.html |
diff --git a/LayoutTests/fast/notifications/notification-click.html b/LayoutTests/fast/notifications/notification-click-shared-worker.html |
similarity index 63% |
copy from LayoutTests/fast/notifications/notification-click.html |
copy to LayoutTests/fast/notifications/notification-click-shared-worker.html |
index e2aaab7c9ab043aefca9c3d75451c52312de26df..3d5279c01843060f054f0529b796e7c3c9c55ecb 100644 |
--- a/LayoutTests/fast/notifications/notification-click.html |
+++ b/LayoutTests/fast/notifications/notification-click-shared-worker.html |
@@ -2,22 +2,22 @@ |
<html> |
<head> |
<script src="../../resources/js-test.js"></script> |
+ <script src="resources/worker-tools.js"></script> |
</head> |
<body> |
<p> |
Tests that Notification.click() will result in the onclick event being |
- called in a document context. When running this test manually, accept |
- the permission and click on the shown notification. |
+ called in a shared worker context. When running this test manually, |
+ accept the permission and click on the shown notification. |
</p> |
<div id="console"></div> |
- <script src="resources/notification-click.js"></script> |
<script> |
if (window.testRunner) { |
testRunner.grantWebNotificationPermission("file://", true); |
testRunner.waitUntilDone(); |
} |
- runTest(); |
+ startWorkerTest('resources/notification-click.js', 'shared'); |
</script> |
</body> |
</html> |