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

Side by Side Diff: LayoutTests/http/tests/push_messaging/has-permission-default-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
« no previous file with comments | « no previous file | LayoutTests/http/tests/push_messaging/has-permission-default-in-service-worker.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Push API: hasPermission resolves with default when no permission is set</ title>
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 if (window.testRunner)
14 testRunner.setPermission('push-messaging', 'prompt', location.origin, lo cation.origin);
15
16 var workerUrl = 'resources/empty_worker.js';
17 var workerScope = 'resources/scope/' + location.pathname;
18 service_worker_unregister_and_register(test, workerUrl, workerScope)
19 .then(function(serviceWorkerRegistration) {
20 // If running manually, clear permissions before running this test.
21 return serviceWorkerRegistration.pushManager.hasPermission();
22 })
23 .then(function(permissionStatus) {
24 assert_equals(permissionStatus, 'default');
25 return service_worker_unregister_and_done(test, workerScope);
26 })
27 .catch(unreached_rejection(test));
28 }, 'Push API: hasPermission resolves with default when permission is not set');
29 </script>
30 </body>
31 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/push_messaging/has-permission-default-in-service-worker.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698