Index: LayoutTests/svg/custom/draw-image-crash.html |
diff --git a/LayoutTests/svg/custom/draw-image-crash.html b/LayoutTests/svg/custom/draw-image-crash.html |
index 37709854e5007dba95388c658c1ffb69e5374849..8b7065a5c0a7fe4c430fb13d0bc0a29153b4b7ed 100644 |
--- a/LayoutTests/svg/custom/draw-image-crash.html |
+++ b/LayoutTests/svg/custom/draw-image-crash.html |
@@ -6,7 +6,7 @@ This test passes if it does not crash and 'PASS' is printed.<br/> |
if (window.testRunner) |
testRunner.waitUntilDone(); |
-window.onload = function() { |
+setTimeout(function() { |
if (location.hash == '#done') { |
document.write('PASS'); |
if (window.testRunner) { |
@@ -17,7 +17,7 @@ window.onload = function() { |
location.hash = 'done'; |
window.location.reload(); |
} |
-} |
+}, 0); |
</script> |
</html> |