Index: LayoutTests/http/tests/notifications/serviceworkerregistration-service-worker-image-slow.html |
diff --git a/LayoutTests/http/tests/notifications/serviceworkerregistration-service-worker-image-slow.html b/LayoutTests/http/tests/notifications/serviceworkerregistration-service-worker-image-slow.html |
index 1f7f293432738855b822ba8c0db95eb96d5a153a..4dd6ef62b9f6072972ed5304ebc0d51f3067ace0 100644 |
--- a/LayoutTests/http/tests/notifications/serviceworkerregistration-service-worker-image-slow.html |
+++ b/LayoutTests/http/tests/notifications/serviceworkerregistration-service-worker-image-slow.html |
@@ -16,6 +16,7 @@ |
var scope = 'resources/scope/' + location.pathname, |
script = 'resources/instrumentation-service-worker.js'; |
+ testRunner.setPermission('notifications', 'granted', location.origin, location.origin); |
testRunner.grantWebNotificationPermission(location.origin, true); |
getActiveServiceWorkerWithMessagePort(test, script, scope).then(function(info) { |
// (1) Display a Web Notification through the Service Worker with |
@@ -46,4 +47,4 @@ |
}, 'Displaying a notification with an image that takes some time to load still resolves the promise.'); |
</script> |
</body> |
-</html> |
+</html> |