Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-after-navigation-within-page.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-after-navigation-within-page.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-after-navigation-within-page.html |
deleted file mode 100644 |
index d30eb7cc4a009939d0633ec53ee77152cfbb5b36..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-after-navigation-within-page.html |
+++ /dev/null |
@@ -1,65 +0,0 @@ |
-<!DOCTYPE html> |
-<title>ServiceWorker: navigator.serviceWorker.waiting</title> |
-<script src="../resources/testharness.js"></script> |
-<script src="../resources/testharnessreport.js"></script> |
-<script src="resources/test-helpers.js"></script> |
-<body> |
-<script> |
- |
-promise_test(function(t) { |
- var scope = |
- 'resources/fetch-event-after-navigation-within-page-iframe.html' + |
- '?hashchange'; |
- var worker = 'resources/simple-intercept-worker.js'; |
- var frame; |
- |
- return service_worker_unregister_and_register(t, worker, scope) |
- .then(function(reg) { |
- return wait_for_state(t, reg.installing, 'activated'); |
- }) |
- .then(function() { return with_iframe(scope); }) |
- .then(function(f) { |
- frame = f; |
- return frame.contentWindow.fetch_url('simple.txt'); |
- }) |
- .then(function(response) { |
- assert_equals(response, 'intercepted by service worker'); |
- frame.contentWindow.location.hash = 'foo'; |
- return frame.contentWindow.fetch_url('simple.txt'); |
- }) |
- .then(function(response) { |
- assert_equals(response, 'intercepted by service worker'); |
- frame.remove(); |
- return service_worker_unregister_and_done(t, scope); |
- }) |
- }, 'Service Worker should respond to fetch event after the hash changes'); |
- |
-promise_test(function(t) { |
- var scope = |
- 'resources/fetch-event-after-navigation-within-page-iframe.html' + |
- '?pushState'; |
- var worker = 'resources/simple-intercept-worker.js'; |
- var frame; |
- |
- return service_worker_unregister_and_register(t, worker, scope) |
- .then(function(reg) { |
- return wait_for_state(t, reg.installing, 'activated'); |
- }) |
- .then(function() { return with_iframe(scope); }) |
- .then(function(f) { |
- frame = f; |
- return frame.contentWindow.fetch_url('simple.txt'); |
- }) |
- .then(function(response) { |
- assert_equals(response, 'intercepted by service worker'); |
- frame.contentWindow.history.pushState('', '', 'bar'); |
- return frame.contentWindow.fetch_url('simple.txt'); |
- }) |
- .then(function(response) { |
- assert_equals(response, 'intercepted by service worker'); |
- frame.remove(); |
- return service_worker_unregister_and_done(t, scope); |
- }) |
- }, 'Service Worker should respond to fetch event after the pushState'); |
- |
-</script> |