Bug 718316 - Try to fix the intermittent orange introduced after the landing of bug 598482 by flushing before capturing the screenshot; r=bzbarsky

This commit is contained in:
Ehsan Akhgari 2012-01-16 14:41:54 -05:00
Родитель e3b1bdecdd
Коммит 2ce8b653cd
2 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;