Index: LayoutTests/http/tests/images/jpeg-partial-load.html |
diff --git a/LayoutTests/http/tests/images/jpeg-partial-load.html b/LayoutTests/http/tests/images/jpeg-partial-load.html |
index b743b89d99050c01d35df6e3c7ef67a56822c2a3..3cc06c255df9c0c7292acce2ef90478d92f97d12 100644 |
--- a/LayoutTests/http/tests/images/jpeg-partial-load.html |
+++ b/LayoutTests/http/tests/images/jpeg-partial-load.html |
@@ -26,5 +26,7 @@ function runTest() |
setTimeout(testDone, 500); |
} |
-setTimeout(runTest, 0); |
+window.onload = function() { |
+ setTimeout(runTest, 0); |
+} |
</script> |