| Index: LayoutTests/http/tests/push_messaging/permission-state-granted-in-document.html
|
| diff --git a/LayoutTests/http/tests/push_messaging/has-permission-granted-in-document.html b/LayoutTests/http/tests/push_messaging/permission-state-granted-in-document.html
|
| similarity index 80%
|
| rename from LayoutTests/http/tests/push_messaging/has-permission-granted-in-document.html
|
| rename to LayoutTests/http/tests/push_messaging/permission-state-granted-in-document.html
|
| index a521873ff07da35305158a4da43be9eaa3b91c45..50ad745a43583e6d256630773d44ae14572350f2 100644
|
| --- a/LayoutTests/http/tests/push_messaging/has-permission-granted-in-document.html
|
| +++ b/LayoutTests/http/tests/push_messaging/permission-state-granted-in-document.html
|
| @@ -1,7 +1,7 @@
|
| <!DOCTYPE html>
|
| <html>
|
| <head>
|
| -<title>Push API: hasPermission resolves with granted when permission is granted</title>
|
| +<title>Push API: permissionState resolves with granted when permission is granted</title>
|
| <link rel="manifest" href="resources/push_manifest.json">
|
| <script src="../resources/testharness.js"></script>
|
| <script src="../resources/testharnessreport.js"></script>
|
| @@ -17,14 +17,14 @@ async_test(function(test) {
|
| // If running manually, grant permission when prompted.
|
| if (window.testRunner)
|
| testRunner.setPermission('push-messaging', 'granted', location.origin, location.origin);
|
| - return serviceWorkerRegistration.pushManager.hasPermission();
|
| + return serviceWorkerRegistration.pushManager.permissionState();
|
| })
|
| .then(function(permissionStatus) {
|
| assert_equals(permissionStatus, 'granted');
|
| return service_worker_unregister_and_done(test, workerScope);
|
| })
|
| .catch(unreached_rejection(test));
|
| -}, 'Push API: hasPermission resolves with granted when permission is granted');
|
| +}, 'Push API: permissionState resolves with granted when permission is granted');
|
| </script>
|
| </body>
|
| </html>
|
|
|