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

Unified Diff: LayoutTests/http/tests/loading/preload-css-test.html

Issue 166633002: Prefetch @import files from CSS files. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Prefetching now handled just like for other resources. Created 6 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: LayoutTests/http/tests/loading/preload-css-test.html
diff --git a/LayoutTests/http/tests/loading/preload-css-test.html b/LayoutTests/http/tests/loading/preload-css-test.html
index 944324df8473d8b6a20d7a4b15c72570d2cf47ce..310260718f13106d6c9cbd2e2553ef428fd38eab 100644
--- a/LayoutTests/http/tests/loading/preload-css-test.html
+++ b/LayoutTests/http/tests/loading/preload-css-test.html
@@ -17,15 +17,17 @@ function printResults(){
}
</script>
+<link href="resources/preloadimports.css" rel="stylesheet">
<script src="http://127.0.0.1:8000/resources/slow-script.pl?delay=100"></script>
<script>
checkForPreload("resources/big_mq.css", true);
checkForPreload("resources/small_mq.css", false);
+checkForPreload("preloaded.css", true);
+checkForPreload("notpreloaded.css", false);
</script>
<link href="resources/big_mq.css" rel="stylesheet" media="screen and (min-width: 800px)">
<link href="resources/small_mq.css" rel="stylesheet" media="screen and (max-width: 799px)">
<script src="http://127.0.0.1:8000/resources/slow-script.pl?delay=100"></script>
-
<body>
<p>Preload scanner should preload only the relevant MQ external CSS</p>
<script>
« no previous file with comments | « no previous file | LayoutTests/http/tests/loading/preload-css-test-expected.txt » ('j') | Source/core/html/HTMLLinkElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698