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

Unified Diff: LayoutTests/http/tests/notifications/request-permission-granted.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/notifications/request-permission-granted.html
diff --git a/LayoutTests/http/tests/notifications/request-permission-granted.html b/LayoutTests/http/tests/notifications/request-permission-granted.html
index 63b4147638532b2e8df9f473fee3bc0872aa12af..0a30970974c59b5dc94241123d9366d78031e675 100644
--- a/LayoutTests/http/tests/notifications/request-permission-granted.html
+++ b/LayoutTests/http/tests/notifications/request-permission-granted.html
@@ -11,12 +11,8 @@
// permission has been granted, causing creation of notifications to
// succeed. When running this test manually, accept permission
// for displaying notifications prior to running the test.
- if (window.testRunner)
- testRunner.clearWebNotificationPermissions();
-
async_test(function (test) {
testRunner.setPermission('notifications', 'granted', location.origin, location.origin);
- testRunner.grantWebNotificationPermission(location.origin, true);
Notification.requestPermission(function (status) {
assert_equals(status, 'granted');

Powered by Google App Engine
This is Rietveld 408576698