michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: function test() { michael@0: waitForExplicitFinish(); michael@0: michael@0: newWindowWithTabView(function (win) { michael@0: let cw = win.TabView.getContentWindow(); michael@0: michael@0: win.addEventListener("SSWindowClosing", function onClose() { michael@0: win.removeEventListener("SSWindowClosing", onClose); michael@0: michael@0: executeSoon(function () { michael@0: ok(cw.UI.isDOMWindowClosing, "dom window is closing"); michael@0: waitForFocus(finish); michael@0: }); michael@0: }); michael@0: michael@0: win.close(); michael@0: }); michael@0: }