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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-after-navigation-within-page.html

Issue 2695803007: service worker: Remove some LayoutTests that are redundant with WPT tests. (Closed)
Patch Set: changes Created 3 years, 10 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: 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>

Powered by Google App Engine
This is Rietveld 408576698