From 2ce8b653cd337aad33e8f01b3ac7eb6de1b7d147 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Mon, 16 Jan 2012 14:41:54 -0500 Subject: [PATCH] Bug 718316 - Try to fix the intermittent orange introduced after the landing of bug 598482 by flushing before capturing the screenshot; r=bzbarsky --- editor/libeditor/text/tests/test_bug597331.html | 1 + editor/libeditor/text/tests/test_bug600570.html | 1 + 2 files changed, 2 insertions(+) diff --git a/editor/libeditor/text/tests/test_bug597331.html b/editor/libeditor/text/tests/test_bug597331.html index a31b394d3e3b..a7ad8a272260 100644 --- a/editor/libeditor/text/tests/test_bug597331.html +++ b/editor/libeditor/text/tests/test_bug597331.html @@ -31,6 +31,7 @@ addLoadEvent(function() { t.selectionStart = 4; t.selectionEnd = 4; SimpleTest.executeSoon(function() { + t.getBoundingClientRect(); // flush layout var before = snapshotWindow(window, true); t.selectionStart = 5; t.selectionEnd = 5; diff --git a/editor/libeditor/text/tests/test_bug600570.html b/editor/libeditor/text/tests/test_bug600570.html index 21ebfca93fdf..0a5a814f8055 100644 --- a/editor/libeditor/text/tests/test_bug600570.html +++ b/editor/libeditor/text/tests/test_bug600570.html @@ -31,6 +31,7 @@ SimpleTest.waitForFocus(function() { synthesizeKey("A", {accelKey: true}); SimpleTest.executeSoon(function() { + t.getBoundingClientRect(); // flush layout var afterSetValue = snapshotWindow(window); t.value = t.defaultValue;