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

Side by Side Diff: LayoutTests/http/tests/notifications/click-dedicated-worker.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
« no previous file with comments | « no previous file | LayoutTests/http/tests/notifications/click-document.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Notifications: Simulating a click should call the onclick event.</tit le> 4 <title>Notifications: Simulating a click should call the onclick event.</tit le>
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 Dedicated Worker-bound notifications will have their onclick 11 // Tests that Dedicated Worker-bound notifications will have their onclick
12 // event fired when they're being clicked on. When the test is being ran 12 // event fired when they're being clicked on. When the test is being ran
13 // manually, grant Notification permission and click on the notification. 13 // manually, grant Notification permission and click on the notification.
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 18
17 dedicatedWorkerTest("resources/click-event-test.js"); 19 dedicatedWorkerTest("resources/click-event-test.js");
18 </script> 20 </script>
19 </body> 21 </body>
20 </html> 22 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/notifications/click-document.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698