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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/linkHeader/link-preload-in-js.html

Issue 1627203002: Fix link header preload on subresources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment Created 4 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/linkHeader/resources/link-preload-js.php » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/linkHeader/link-preload-in-js.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/preload/avoid_delaying_onload_link_preload.html b/third_party/WebKit/LayoutTests/http/tests/linkHeader/link-preload-in-js.html
similarity index 59%
copy from third_party/WebKit/LayoutTests/http/tests/preload/avoid_delaying_onload_link_preload.html
copy to third_party/WebKit/LayoutTests/http/tests/linkHeader/link-preload-in-js.html
index 86a7d86e3262984b2b5c4a823369b8cc4c94054d..c8a8600391f1992f3d0b6aad41a80e22956ae127 100644
--- a/third_party/WebKit/LayoutTests/http/tests/preload/avoid_delaying_onload_link_preload.html
+++ b/third_party/WebKit/LayoutTests/http/tests/linkHeader/link-preload-in-js.html
@@ -2,12 +2,13 @@
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
- var t = async_test('Makes sure link preload preloaded resources are not delaying onload');
+ var t = async_test('Makes sure link preload headers are loaded on subresources');
</script>
-<link rel=preload href="../resources/slow-script.pl?delay=200" as=script>
+<script src="resources/link-preload-js.php"></script>
+<script src="../resources/slow-script.pl?delay=200"></script>
<script>
window.addEventListener("load", t.step_func(function() {
- assert_equals(performance.getEntriesByType("resource").length, 2);
+ assert_equals(performance.getEntriesByType("resource").length, 5);
t.done();
}));
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/linkHeader/resources/link-preload-js.php » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698