Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Unified Diff: LayoutTests/http/tests/notifications/click-window-focus-document.html

Issue 1097383006: Notifications: use testRunner.setPermission() in addition of grantWebNotificationPermission. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cleanup
Patch Set: fix expectations Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/notifications/click-window-focus-document.html
diff --git a/LayoutTests/http/tests/notifications/click-window-focus-document.html b/LayoutTests/http/tests/notifications/click-window-focus-document.html
index 3b7bcfc95d887b617ff29675c8dc24d703a39723..b3124460fc102ba9a957c3ad0c8c255a09f236b8 100644
--- a/LayoutTests/http/tests/notifications/click-window-focus-document.html
+++ b/LayoutTests/http/tests/notifications/click-window-focus-document.html
@@ -11,8 +11,9 @@
// their onclick event. When the test is being ran manually, grant
// Notification permission and click on the notification.
if (window.testRunner) {
- testRunner.setCanOpenWindows();
+ testRunner.setCanOpenWindows();
testRunner.setCloseRemainingWindowsWhenComplete();
+ testRunner.setPermission('notifications', 'granted', location.origin, location.origin);
testRunner.grantWebNotificationPermission(location.origin, true);
}
@@ -38,7 +39,7 @@
notification.addEventListener('click', function() {
window.focus();
});
-
+
notification.addEventListener('error', function() {
assert_unreached('The error event should not be thrown.');
});
@@ -47,4 +48,4 @@
</script>
<script src="resources/click-focus-test.js"></script>
</body>
-</html>
+</html>

Powered by Google App Engine
This is Rietveld 408576698