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

Unified Diff: LayoutTests/http/tests/notifications/request-permission-granted.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/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 aed6c2a3dd9449c00a5f5968a2f9c7b0deb83e9d..63b4147638532b2e8df9f473fee3bc0872aa12af 100644
--- a/LayoutTests/http/tests/notifications/request-permission-granted.html
+++ b/LayoutTests/http/tests/notifications/request-permission-granted.html
@@ -15,6 +15,7 @@
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');
@@ -32,4 +33,4 @@
}, 'Notification creation succeeds when permission has been granted.');
</script>
</body>
-</html>
+</html>

Powered by Google App Engine
This is Rietveld 408576698