Index: LayoutTests/fast/dom/Window/post-message-crash.html |
diff --git a/LayoutTests/fast/dom/Window/post-message-crash.html b/LayoutTests/fast/dom/Window/post-message-crash.html |
index d317281f42675d3995971b0dc343cc6e72af7597..9157d9764a6df2c91a74b113edd24b832cdd9394 100644 |
--- a/LayoutTests/fast/dom/Window/post-message-crash.html |
+++ b/LayoutTests/fast/dom/Window/post-message-crash.html |
@@ -6,6 +6,7 @@ |
<pre>FAIL</pre> |
+<script src="../../../resources/run-after-display.js"></script> |
<script> |
if (window.testRunner) { |
testRunner.dumpAsText(); |
@@ -23,17 +24,17 @@ window.onerror = function() { |
return true; |
}; |
-requestAnimationFrame(postMessage); |
+requestAnimationFrame(function() { |
+ postMessage(); |
+ runAfterDisplay(function() { |
+ setTimeout(function() { |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ }, 50); |
+ }); |
+}); |
setTimeout(postMessage); |
-if (window.testRunner) |
- testRunner.display(); |
- |
-setTimeout(function() { |
- if (window.testRunner) |
- testRunner.notifyDone(); |
-}, 50); |
- |
</script> |
</body> |
</html> |