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

Unified Diff: LayoutTests/http/tests/push_messaging/permission-state-granted-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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698