Index: LayoutTests/http/tests/push_messaging/register_permission_denied.html |
diff --git a/LayoutTests/http/tests/push_messaging/register_permission_denied.html b/LayoutTests/http/tests/push_messaging/register_permission_denied.html |
deleted file mode 100644 |
index 179207aeb17f8c54fa1d7cf929a11b8088fbf0cc..0000000000000000000000000000000000000000 |
--- a/LayoutTests/http/tests/push_messaging/register_permission_denied.html |
+++ /dev/null |
@@ -1,38 +0,0 @@ |
-<!DOCTYPE html> |
-<html> |
-<head> |
-<title>register() is rejected when permission has been 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; |
- var swRegistration; |
- service_worker_unregister_and_register(test, workerUrl, workerScope) |
- .then(function(serviceWorkerRegistration) { |
- swRegistration = serviceWorkerRegistration; |
- return wait_for_state(test, swRegistration.installing, 'activated'); |
- }) |
- .then(function() { |
- // If running manually, deny permission when prompted. |
- if (self.testRunner) |
- testRunner.setPushMessagingPermission(location.origin, false); |
- return swRegistration.pushManager.register(); |
- }) |
- .then(function(pushRegistration) { |
- assert_unreached('Registration must not succeed after permission is denied.'); |
- }, function(e) { |
- assert_equals(e.name, 'AbortError'); |
- assert_equals(e.message, 'Registration failed - permission denied'); |
- return service_worker_unregister_and_done(test, workerScope); |
- }) |
- .catch(unreached_rejection(test)); |
-}, 'register() is rejected when permission has been denied'); |
-</script> |
-</body> |
-</html> |