mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1334831 - Make the printpreview_bug396024_helper.xul test not depend on the removeChild return value, r=jaws.
This commit is contained in:
parent
bb2e204d5d
commit
f5038afffa
@ -100,14 +100,14 @@ function run3() {
|
||||
|
||||
function run4() {
|
||||
var i = document.getElementById("i");
|
||||
var x = i.parentNode.removeChild(i);
|
||||
i.parentNode.removeChild(i);
|
||||
var loadhandler = function() {
|
||||
document.getElementById("i").removeEventListener("load", loadhandler, true);
|
||||
setTimeout(run5, 0);
|
||||
};
|
||||
x.addEventListener("load", loadhandler, true);
|
||||
i.addEventListener("load", loadhandler, true);
|
||||
document.documentElement.getBoundingClientRect();
|
||||
document.documentElement.appendChild(x);
|
||||
document.documentElement.appendChild(i);
|
||||
gWbp = window.frames[1].QueryInterface(Components.interfaces.nsIInterfaceRequestor)
|
||||
.getInterface(Components.interfaces.nsIWebBrowserPrint);
|
||||
ok(!gWbp.doingPrintPreview, "Should not be doing print preview anymore2");
|
||||
|
Loading…
Reference in New Issue
Block a user