Bug 762571 - Intermittent browser_layoutview.js; r=past

This commit is contained in:
Paul Rouget 2012-11-07 13:28:04 +01:00
parent 642161cd5d
commit e9462bba4c

View File

@ -105,13 +105,15 @@ function test() {
is(elt.textContent, res1[i].value, res1[i].selector + " has the right value.");
}
gBrowser.selectedBrowser.addEventListener("MozAfterPaint", test2, false);
InspectorUI.selection.style.height = "150px";
InspectorUI.selection.style.paddingRight = "50px";
setTimeout(test2, 200); // Should be enough to get a MozAfterPaint event
}
function test2() {
gBrowser.selectedBrowser.removeEventListener("MozAfterPaint", test2, false);
let viewdoc = view.iframe.contentDocument;
for (let i = 0; i < res2.length; i++) {