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

Side by Side Diff: LayoutTests/http/tests/notifications/close-document.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 unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Notifications: Programatically closing a notification should fire the onclose event.</title> 4 <title>Notifications: Programatically closing a notification should fire the onclose event.</title>
5 <script src="../resources/testharness.js"></script> 5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script> 6 <script src="../resources/testharnessreport.js"></script>
7 <script src="resources/test-helpers.js"></script> 7 <script src="resources/test-helpers.js"></script>
8 </head> 8 </head>
9 <body> 9 <body>
10 <script> 10 <script>
11 // Tests that Document-bound notifications will fire the onclose event 11 // Tests that Document-bound notifications will fire the onclose event
12 // when they have their close() method called. When the test is being ran 12 // when they have their close() method called. When the test is being ran
13 // manually, grant Notification permission first. 13 // manually, grant Notification permission first.
14 if (window.testRunner) 14 if (window.testRunner) {
15 testRunner.setPermission('notifications', 'granted', location.origin, location.origin);
15 testRunner.grantWebNotificationPermission(location.origin, true); 16 testRunner.grantWebNotificationPermission(location.origin, true);
17 }
16 </script> 18 </script>
17 <script src="resources/close-event-test.js"></script> 19 <script src="resources/close-event-test.js"></script>
18 </body> 20 </body>
19 </html> 21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698