mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 762571 - Intermittent browser_layoutview.js; r=past
This commit is contained in:
parent
642161cd5d
commit
e9462bba4c
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user