Index: LayoutTests/fast/notifications/notifications-constructor-without-permission-dedicated-worker.html |
diff --git a/LayoutTests/fast/notifications/notifications-constructor-without-permission.html b/LayoutTests/fast/notifications/notifications-constructor-without-permission-dedicated-worker.html |
similarity index 54% |
copy from LayoutTests/fast/notifications/notifications-constructor-without-permission.html |
copy to LayoutTests/fast/notifications/notifications-constructor-without-permission-dedicated-worker.html |
index dfb02584fe55b25f1c3f7d7a47e17f1faf509e48..ef02caf509e60452589b6d059e1dca6dc87bc7ef 100644 |
--- a/LayoutTests/fast/notifications/notifications-constructor-without-permission.html |
+++ b/LayoutTests/fast/notifications/notifications-constructor-without-permission-dedicated-worker.html |
@@ -2,15 +2,15 @@ |
<html> |
<head> |
<script src="../../resources/js-test.js"></script> |
+ <script src="resources/worker-tools.js"></script> |
</head> |
<body> |
<p> |
- Tests that notifications will not be displayed when no permission |
- has been granted. The text "notification.onerror fired" should be |
- displayed below. |
+ Tests that notifications created in the dedicated worker context will |
+ not be displayed when no permission has been granted. The text |
+ "notification.onerror fired" should be displayed below. |
</p> |
<div id="console"></div> |
- <script src="resources/notification-display.js"></script> |
<script> |
if (window.testRunner) { |
testRunner.dumpAsText(); |
@@ -18,7 +18,7 @@ |
testRunner.clearWebNotificationPermissions(); |
} |
- runTest(); |
+ startWorkerTest('resources/notification-display.js', 'dedicated'); |
</script> |
</body> |
</html> |