Bug 1334831 - Make the printpreview_bug396024_helper.xul test not depend on the removeChild return value, r=jaws.

This commit is contained in:
Florian Quèze 2017-01-30 08:10:15 +01:00
parent bb2e204d5d
commit f5038afffa

View File

@ -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");