Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/request-end-to-end.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/request-end-to-end.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/request-end-to-end.html |
deleted file mode 100644 |
index 9b7c91645316a523a98e9f0ff0af6c65e2775fd1..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/request-end-to-end.html |
+++ /dev/null |
@@ -1,37 +0,0 @@ |
-<!DOCTYPE html> |
-<title>Service Worker: FetchEvent.request passed to onfetch</title> |
-<script src="../resources/testharness.js"></script> |
-<script src="../resources/testharnessreport.js"></script> |
-<script src="resources/test-helpers.js"></script> |
-<script> |
-promise_test(t => { |
- var url = 'resources/request-end-to-end-worker.js'; |
- var scope = 'resources/blank.html'; |
- return service_worker_unregister_and_register(t, url, scope) |
- .then(r => { |
- add_completion_callback(() => { r.unregister(); }); |
- return wait_for_state(t, r.installing, 'activated'); |
- }) |
- .then(() => { return with_iframe(scope); }) |
- .then(frame => { |
- add_completion_callback(() => { frame.remove(); }); |
- |
- var result = JSON.parse(frame.contentDocument.body.textContent); |
- assert_equals(result.url, frame.src, 'request.url'); |
- assert_equals(result.method, 'GET', 'request.method'); |
- assert_equals(result.referrer, location.href, 'request.referrer'); |
- assert_equals(result.mode, 'navigate', 'request.mode'); |
- assert_equals(result.request_construct_error, 'TypeError', |
- 'Constructing a Request with a Request whose mode ' + |
- 'is navigate and non-empty RequestInit must throw a ' + |
- 'TypeError.') |
- assert_equals(result.credentials, 'include', 'request.credentials'); |
- assert_equals(result.redirect, 'manual', 'request.redirect'); |
- assert_equals(result.headers['user-agent'], navigator.userAgent, |
- 'User-Agent header'); |
- assert_equals(result.append_header_error, 'TypeError', |
- 'Appending a new header to the request must throw a ' + |
- 'TypeError.') |
- }); |
- }, 'Test FetchEvent.request passed to onfetch'); |
-</script> |