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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/preload/fetch_destination.https.html

Issue 2697453005: Import wpt@758b3b4cfa805067f36121333ba031e583d3a62c (Closed)
Patch Set: Add -expected.txt files. 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/external/wpt/preload/fetch_destination.https.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/preload/fetch_destination.https.html b/third_party/WebKit/LayoutTests/external/wpt/preload/fetch_destination.https.html
deleted file mode 100644
index fcd202d7b5db8792d0b7183b8c6422ab42265011..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/external/wpt/preload/fetch_destination.https.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script src="../service-workers/service-worker/resources/test-helpers.sub.js"></script>
-<script>
-async_test(function(t) {
- var worker_url = 'resources/fetch-destination-worker.js';
- var scope = 'resources/empty.html';
- var registration;
-
- service_worker_unregister_and_register(t, worker_url, scope)
- .then(t.step_func(function(r) {
- registration = r;
- return wait_for_state(t, r.installing, 'activated');
- }))
- .then(t.step_func(function() {
- return with_iframe(scope);
- }))
- .then(t.step_func(function(frame) {
- var link = frame.contentWindow.document.createElement("link");
- link.as = "fetch";
- link.href = "resources/dummy.xml";
- link.rel = "preload";
- link.addEventListener("load", t.step_func_done(function() { registration.unregister(); }));
- link.addEventListener("error", t.step_func_done(function() {
- registration.unregister();
- assert_unreached("Fetch destination preload errored");
- }));
- frame.contentWindow.document.body.appendChild(link);
- }))
- .catch(unreached_rejection(t));
-}, 'Fetch destination preload');
-</script>

Powered by Google App Engine
This is Rietveld 408576698