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

Unified Diff: LayoutTests/http/tests/serviceworker/chromium/clients-openwindow.html

Issue 1100163002: Notifications: stop using notifications specific permission methods in LayoutTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@notifications_testrunner_setpermission
Patch Set: update 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/serviceworker/chromium/clients-openwindow.html
diff --git a/LayoutTests/http/tests/serviceworker/chromium/clients-openwindow.html b/LayoutTests/http/tests/serviceworker/chromium/clients-openwindow.html
index 1d07ec1904bed0f2f64daa672a2e67a7f31debaa..9e30ccb77f91efbcea2a46f8efedeb98e110f4f4 100644
--- a/LayoutTests/http/tests/serviceworker/chromium/clients-openwindow.html
+++ b/LayoutTests/http/tests/serviceworker/chromium/clients-openwindow.html
@@ -7,10 +7,8 @@
// 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('clients.openWindow() behaved as expected');
t.step(function() {

Powered by Google App Engine
This is Rietveld 408576698