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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/loading/resources/preload-img-test-iframe.html

Issue 1833303002: [Not committed] Make image load completion async and remove EventSender from ImageLoader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Loader_asyncImageLoadEvent_1
Patch Set: Rebase. Created 4 years, 8 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/loading/resources/preload-img-test-iframe.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/loading/resources/preload-img-test-iframe.html b/third_party/WebKit/LayoutTests/http/tests/loading/resources/preload-img-test-iframe.html
index 496f02069e5ffed16bfdab8eb6931b50b68adfac..fd3c020f7b11749cba397f1a6ed2d10ab7ce8b76 100644
--- a/third_party/WebKit/LayoutTests/http/tests/loading/resources/preload-img-test-iframe.html
+++ b/third_party/WebKit/LayoutTests/http/tests/loading/resources/preload-img-test-iframe.html
@@ -14,3 +14,8 @@ function onimgload() {
}
</script>
<img src="/resources/network-simulator.php?command=increase-resource-count&path=/loading/resources/preload-test.jpg" onerror="window.parent.postMessage('imgerror', '*')" onload="onimgload()">
+<!--
+Running slow external script forces img.onload() is called before
+ResourceFetcher::clearPreloads().
+-->
+<script type="text/javascript" src="/resources/slow-script.pl?delay=2000"></script>

Powered by Google App Engine
This is Rietveld 408576698