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

Side by Side Diff: LayoutTests/http/tests/notifications/update-dedicated-worker.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 unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Notifications: The "tag" property is able to replace existing notific ations.</title> 4 <title>Notifications: The "tag" property is able to replace existing notific ations.</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 Dedicated Worker-bound notifications can be replaced using t he 11 // Tests that Dedicated Worker-bound notifications can be replaced using t he
12 // "tag" property in the constructor's options. When the test is being ran 12 // "tag" property in the constructor's options. When the test is being ran
13 // manually, grant Notification permission first and verify that only a 13 // manually, grant Notification permission first and verify that only a
14 // single notification will be shown at the end of the test. 14 // single notification will be shown at the end of the test.
15 if (window.testRunner) { 15 if (window.testRunner)
16 testRunner.setPermission('notifications', 'granted', location.origin, location.origin); 16 testRunner.setPermission('notifications', 'granted', location.origin, location.origin);
17 testRunner.grantWebNotificationPermission(location.origin, true);
18 }
19 17
20 dedicatedWorkerTest("resources/update-event-test.js"); 18 dedicatedWorkerTest("resources/update-event-test.js");
21 </script> 19 </script>
22 </body> 20 </body>
23 </html> 21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698