Index: LayoutTests/http/tests/loading/preload-image-sizes-2x.html |
diff --git a/LayoutTests/http/tests/loading/preload-image-sizes-2x.html b/LayoutTests/http/tests/loading/preload-image-sizes-2x.html |
index 5134eb32a69a66f8fe62d56ed1f477f2c618ef80..e773cf4bebff453db70cd0936bd96e34c8417158 100644 |
--- a/LayoutTests/http/tests/loading/preload-image-sizes-2x.html |
+++ b/LayoutTests/http/tests/loading/preload-image-sizes-2x.html |
@@ -9,6 +9,8 @@ |
</head> |
<body> |
<script> |
+ window.manualNotifyDone = true; |
+ var reloaded = sessionStorage.pageReloaded; |
if (window.testRunner) |
testRunner.dumpAsText(); |
shouldBeTrue("internals.isPreloaded('resources/image2.png');"); |
@@ -27,6 +29,12 @@ |
shouldBeFalse("internals.isPreloaded('resources/base-image2.png?10');"); |
shouldBeFalse("internals.isPreloaded('resources/base-image3.png?10');"); |
+ window.onload = function() { |
+ setTimeout(function() { |
+ if (reloaded && window.testRunner) |
+ testRunner.notifyDone(); |
+ }, 0); |
+ } |
</script> |
<!-- Control group --> |
<img src="resources/image2.png"> |