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> |