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

Unified Diff: LayoutTests/http/tests/serviceworker/chromium/windowclient-focus.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
« no previous file with comments | « LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-openwindow.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/chromium/windowclient-focus.html
diff --git a/LayoutTests/http/tests/serviceworker/chromium/windowclient-focus.html b/LayoutTests/http/tests/serviceworker/chromium/windowclient-focus.html
index 3148987b3779d4aad6118ba727767c645a719cd8..be971fec68439bd8f6f001f30c3ce094055c542d 100644
--- a/LayoutTests/http/tests/serviceworker/chromium/windowclient-focus.html
+++ b/LayoutTests/http/tests/serviceworker/chromium/windowclient-focus.html
@@ -7,8 +7,10 @@
// This test is using testRunner to grant itself the notification permission and
// to simulate a click on a notification. A couple of changes would allow it to
// be run as a manual test by other browser vendors.
-if (window.testRunner)
+if (window.testRunner) {
+ testRunner.setPermission('notifications', 'granted', location.origin, location.origin);
testRunner.grantWebNotificationPermission(location.origin, true);
+}
var t = async_test('WindowClient.focus() behaved as expected');
t.step(function() {
« no previous file with comments | « LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-openwindow.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698