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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLLinkElement/link-preload-unused.html

Issue 2343623002: Add a warning whenever link preloads are not used (Closed)
Patch Set: Added failing unit tests Created 4 years, 3 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/fast/dom/HTMLLinkElement/link-preload-unused.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLLinkElement/link-preload-unused.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLLinkElement/link-preload-unused.html
new file mode 100644
index 0000000000000000000000000000000000000000..9b9829e3f64abb951d1bc1ae69936637db524376
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLLinkElement/link-preload-unused.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<script>
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
+ }
+ window.setTimeout(function() {
+ if (window.testRunner) {
+ testRunner.notifyDone();
+ }
+ }, 4000);
+</script>
+<link rel="preload" as="image" href="resources/nick.jpg">
+<link rel="preload" as="image" href="resources/nick.jpg?name=value">
+<img src="resources/nick.jpg">
+This test verifies that unused preload resources (and only unused ones) issue a warning.

Powered by Google App Engine
This is Rietveld 408576698