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

Side by Side Diff: LayoutTests/http/tests/push_messaging/has-permission-denied-in-document.html

Issue 1083193006: Rename hasPermission to permissionState. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: re-add hasPermission to the expectations file 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Push API: hasPermission resolves with denied when permission is denied</t itle>
5 <link rel="manifest" href="resources/push_manifest.json">
6 <script src="../resources/testharness.js"></script>
7 <script src="../resources/testharnessreport.js"></script>
8 <script src="../serviceworker/resources/test-helpers.js"></script>
9 </head>
10 <body>
11 <script>
12 async_test(function(test) {
13 var workerUrl = 'resources/empty_worker.js';
14 var workerScope = 'resources/scope/' + location.pathname;
15 service_worker_unregister_and_register(test, workerUrl, workerScope)
16 .then(function(serviceWorkerRegistration) {
17 // If running manually, deny permission when prompted.
18 if (window.testRunner)
19 testRunner.setPermission('push-messaging', 'denied', location.or igin, location.origin);
20 return serviceWorkerRegistration.pushManager.hasPermission();
21 })
22 .then(function(permissionStatus) {
23 assert_equals(permissionStatus, 'denied');
24 return service_worker_unregister_and_done(test, workerScope);
25 })
26 .catch(unreached_rejection(test));
27 }, 'Push API: hasPermission resolves with denied when permission is denied');
28 </script>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698