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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/push_messaging/has-permission-denied-in-document.html
diff --git a/LayoutTests/http/tests/push_messaging/has-permission-denied-in-document.html b/LayoutTests/http/tests/push_messaging/has-permission-denied-in-document.html
deleted file mode 100644
index d4752908bfc5d99f9e397d210d0be1edc005eb4c..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/push_messaging/has-permission-denied-in-document.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<title>Push API: hasPermission resolves with denied when permission is denied</title>
-<link rel="manifest" href="resources/push_manifest.json">
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="../serviceworker/resources/test-helpers.js"></script>
-</head>
-<body>
-<script>
-async_test(function(test) {
- var workerUrl = 'resources/empty_worker.js';
- var workerScope = 'resources/scope/' + location.pathname;
- service_worker_unregister_and_register(test, workerUrl, workerScope)
- .then(function(serviceWorkerRegistration) {
- // If running manually, deny permission when prompted.
- if (window.testRunner)
- testRunner.setPermission('push-messaging', 'denied', location.origin, location.origin);
- return serviceWorkerRegistration.pushManager.hasPermission();
- })
- .then(function(permissionStatus) {
- assert_equals(permissionStatus, 'denied');
- return service_worker_unregister_and_done(test, workerScope);
- })
- .catch(unreached_rejection(test));
-}, 'Push API: hasPermission resolves with denied when permission is denied');
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698