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

Unified Diff: chrome/test/data/notifications/notification_tester.html

Issue 2925203003: Add a test for Notification.permission. (Closed)
Patch Set: Created 3 years, 6 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 | « chrome/browser/notifications/notification_interactive_uitest_support.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/notifications/notification_tester.html
diff --git a/chrome/test/data/notifications/notification_tester.html b/chrome/test/data/notifications/notification_tester.html
index 2cfc5f6a39eba7cd5756d9306049646786a48f85..769c24316d7d30bfff27d66b5675151489bc5721 100644
--- a/chrome/test/data/notifications/notification_tester.html
+++ b/chrome/test/data/notifications/notification_tester.html
@@ -53,6 +53,12 @@ function requestPermission() {
Notification.requestPermission(permissionCallbackWithResponse);
}
+// Checks the notification permission status. The result will be sent directly
+// via permissionCallbackWithResponse.
+function queryPermissionStatus() {
+ sendResultToTest(Notification.permission);
+}
+
// Callback for requestPermissionAndRespond. Will send the permission status to
// the test driver.
function permissionCallbackWithResponse(permissionStatus) {
« no previous file with comments | « chrome/browser/notifications/notification_interactive_uitest_support.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698