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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-request-html-imports.html

Issue 2858093002: Upstream service worker `fetch` test to WPT (Closed)
Patch Set: Incorporate review feedback Created 3 years, 7 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-request-html-imports.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-request-html-imports.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-request-html-imports.html
deleted file mode 100644
index 639ae5b48d94c769d8d2d5efb994706b7b4a0e05..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-request-html-imports.html
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE html>
-<title>Service Worker: FetchEvent for HTMLImports</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="../resources/get-host-info.js?pipe=sub"></script>
-<script src="resources/test-helpers.js"></script>
-<script>
-async_test(function(t) {
- var SCOPE = 'resources/fetch-request-html-imports-iframe.html';
- var SCRIPT = 'resources/fetch-request-html-imports-worker.js';
- var host_info = get_host_info();
- service_worker_unregister_and_register(t, SCRIPT, SCOPE)
- .then(function(registration) {
- return wait_for_state(t, registration.installing, 'activated');
- })
- .then(function() { return with_iframe(SCOPE); })
- .then(function(frame) {
- var same = frame.contentWindow.document.getElementById("same").import;
- var same_same = same.getElementById("same-same").import;
- var same_other = same.getElementById("same-other").import;
- var other =
- frame.contentWindow.document.getElementById("other").import;
- var other_same = other.getElementById("other-same").import;
- var other_other = other.getElementById("other-other").import;
-
- assert_equals(
- same.body.innerText,
- 'mode=cors credentials=same-origin',
- 'The request mode and credentials for same origin HTMLImport ' +
- 'must be set correctly.');
- assert_equals(
- same_same.body.innerText,
- 'mode=cors credentials=same-origin',
- 'The request mode and credentials for same origin HTMLImport ' +
- 'from same origin HTMLImports must be set correctly.');
- assert_equals(
- same_other.body.innerText,
- 'mode=cors credentials=same-origin',
- 'The request mode and credentials for other origin HTMLImport ' +
- 'from same origin HTMLImports must be set correctly.');
- assert_equals(
- other.body.innerText,
- 'mode=cors credentials=same-origin',
- 'The request mode and credentials for other origin HTMLImport ' +
- 'must be set correctly.');
- assert_equals(
- other_same.body.innerText,
- 'mode=cors credentials=same-origin',
- 'The request mode and credentials for same origin HTMLImport ' +
- 'from other origin HTMLImports must be set correctly.');
- assert_equals(
- other_other.body.innerText,
- 'mode=cors credentials=same-origin',
- 'The request mode and credentials for other origin HTMLImport ' +
- 'from other origin HTMLImport must be set correctly.');
-
- service_worker_unregister_and_done(t, SCOPE);
- })
- .catch(unreached_rejection(t));
- }, 'Verify the FetchEvent for HTMLImports');
-</script>

Powered by Google App Engine
This is Rietveld 408576698