Index: LayoutTests/http/tests/notifications/serviceworkerregistration-document-image-slow.html |
diff --git a/LayoutTests/http/tests/notifications/serviceworkerregistration-document-image-slow.html b/LayoutTests/http/tests/notifications/serviceworkerregistration-document-image-slow.html |
index 11e758af246f3dc31f850862be8d86c62248687e..c492a61479abd29f976ee14266066c113cfb7d95 100644 |
--- a/LayoutTests/http/tests/notifications/serviceworkerregistration-document-image-slow.html |
+++ b/LayoutTests/http/tests/notifications/serviceworkerregistration-document-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 with an image that takes 200ms to load. |
@@ -30,4 +31,4 @@ |
}, 'Displaying a notification with an image that takes some time to load still resolves the promise.'); |
</script> |
</body> |
-</html> |
+</html> |