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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/push_messaging/has-permission-default-in-document.html
diff --git a/LayoutTests/http/tests/push_messaging/has-permission-default-in-document.html b/LayoutTests/http/tests/push_messaging/has-permission-default-in-document.html
deleted file mode 100644
index 88cd9e04945f4617fd29e40fae3ff8f3c2d05fd4..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/push_messaging/has-permission-default-in-document.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<title>Push API: hasPermission resolves with default when no permission is set</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) {
- if (window.testRunner)
- testRunner.setPermission('push-messaging', 'prompt', location.origin, location.origin);
-
- 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, clear permissions before running this test.
- return serviceWorkerRegistration.pushManager.hasPermission();
- })
- .then(function(permissionStatus) {
- assert_equals(permissionStatus, 'default');
- return service_worker_unregister_and_done(test, workerScope);
- })
- .catch(unreached_rejection(test));
-}, 'Push API: hasPermission resolves with default when permission is not set');
-</script>
-</body>
-</html>
« 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