38 let
testPage =
"data:text/plain,test bug 491431 Page";
43 let newWin, tabA, tabB;
47 gBrowser.addEventListener(
"TabClose",
function(aEvent) {
48 gBrowser.removeEventListener(
"TabClose",
arguments.callee,
true);
49 ok(!aEvent.detail,
"This was a normal tab close");
53 gBrowser.addEventListener(
"TabClose",
function(aEvent) {
54 gBrowser.removeEventListener(
"TabClose",
arguments.callee,
true);
55 executeSoon(
function() {
56 ok(aEvent.detail,
"This was a tab closed by moving");
63 newWin = gBrowser.replaceTabWithWindow(tabB);
65 gBrowser.removeTab(tabA);
return!aWindow arguments!aWindow arguments[0]