Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: LayoutTests/fast/dom/Window/post-message-crash.html

Issue 183703003: Remove more testRunner.display() calls from LayoutTests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ditch fast/text/font-initial changes too Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « LayoutTests/fast/css/relative-positioned-block-crash.html ('k') | LayoutTests/fast/dynamic/layer-no-longer-paginated.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698