Index: LayoutTests/fast/notifications/notification-close-dedicated-worker.html |
diff --git a/LayoutTests/fast/notifications/notification-close.html b/LayoutTests/fast/notifications/notification-close-dedicated-worker.html |
similarity index 63% |
copy from LayoutTests/fast/notifications/notification-close.html |
copy to LayoutTests/fast/notifications/notification-close-dedicated-worker.html |
index ae399b78e9ed4fa7ab3f279c92e5a28b69178107..8ee4eb9c83fca1253520261c825edbcd25d6c1c0 100644 |
--- a/LayoutTests/fast/notifications/notification-close.html |
+++ b/LayoutTests/fast/notifications/notification-close-dedicated-worker.html |
@@ -2,21 +2,22 @@ |
<html> |
<head> |
<script src="../../resources/js-test.js"></script> |
+ <script src="resources/worker-tools.js"></script> |
</head> |
<body> |
<p> |
- Tests that Notification.close() closes the notification, and the |
- Notification.onclose event gets called. |
+ Tests that Notification.close() closes the notification when called |
+ from a dedicated worker context, causing the Notification.onclose event |
+ to be invoked. |
</p> |
<div id="console"></div> |
- <script src="resources/notification-close.js"></script> |
<script> |
if (window.testRunner) { |
testRunner.grantWebNotificationPermission("file://", true); |
testRunner.waitUntilDone(); |
} |
- runTest(); |
+ startWorkerTest('resources/notification-close.js', 'dedicated'); |
</script> |
</body> |
</html> |