Bug 924972 - Enforce the focus before running every subtest of test_reftests_with_caret.html

This commit is contained in:
Ehsan Akhgari 2014-01-21 13:27:04 -05:00
parent 87bb420b41
commit e680555714
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@
var doc = iframe.contentDocument;
setTimeout(function() {
doc.body.scrollIntoView();
synthesizeMouse(iframe, 10, 10, {});
// Now try to set the caret without moving it

View File

@ -39,7 +39,7 @@ function callbackTestCanvas(canvas)
reference.parentNode.removeChild(reference);
}
canvases = [];
nextTest();
SimpleTest.waitForFocus(nextTest);
}
function doSnapShot(iframe) {