browser_bug462673.js File Reference

Go to the source code of this file.

Functions

function test ()
 
function runOneTest ()
 

Variables

var runs
 

Function Documentation

function runOneTest ( )

Definition at line 28 of file browser_bug462673.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function test ( )

Definition at line 23 of file browser_bug462673.js.

Here is the call graph for this function:

Variable Documentation

var runs
Initial value:
= [
function (win, tabbrowser, tab) {
is(tabbrowser.browsers.length, 2, "test_bug462673.html has opened a second tab");
is(tabbrowser.selectedTab, tab.nextSibling, "dependent tab is selected");
tabbrowser.removeTab(tab);
ok(win.closed, "Window is closed");
},
function (win, tabbrowser, tab) {
var newTab = tabbrowser.addTab();
var newBrowser = newTab.linkedBrowser;
tabbrowser.removeTab(tab);
ok(!win.closed, "Window stays open");
if (!win.closed) {
is(tabbrowser.tabContainer.childElementCount, 1, "Window has one tab");
is(tabbrowser.browsers.length, 1, "Window has one browser");
is(tabbrowser.selectedTab, newTab, "Remaining tab is selected");
is(tabbrowser.selectedBrowser, newBrowser, "Browser for remaining tab is selected");
is(tabbrowser.mTabBox.selectedPanel, newBrowser.parentNode, "Panel for remaining tab is selected");
}
}
]
var tab
var newBrowser
var tabbrowser

Definition at line 1 of file browser_bug462673.js.