Bug 539356 - Fix selectAtPoint.html test. r=mattwoodrow

This commit is contained in:
Robert O'Callahan 2012-09-28 01:07:40 +12:00
Родитель 2319c738f1
Коммит 48ad68b539
1 изменённых файлов: 14 добавлений и 4 удалений

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

@ -197,13 +197,23 @@
}
function onFrameLoad() {
frameLoad = true;
testReady();
// Exit the onload handler before trying the test, because we need
// to ensure that paint unsupression has happened.
setTimeout(function() {
frameLoad = true;
testReady();
}, 0);
}
function onPageLoad() {
pageLoad = true;
testReady();
// Exit the onload handler before trying the test, because we need
// to ensure that paint unsupression has happened
// XXXroc why do we need to separately test for the loading of the frame
// and a paint? That should not be necessary for this test.
setTimeout(function() {
pageLoad = true;
testReady();
}, 0);
}
function onPaint() {