3 is(
tabbrowser.browsers.length, 2,
"test_bug462673.html has opened a second tab");
4 is(
tabbrowser.selectedTab,
tab.nextSibling,
"dependent tab is selected");
6 ok(
win.closed,
"Window is closed");
12 ok(!
win.closed,
"Window stays open");
14 is(
tabbrowser.tabContainer.childElementCount, 1,
"Window has one tab");
15 is(
tabbrowser.browsers.length, 1,
"Window has one browser");
16 is(
tabbrowser.selectedTab, newTab,
"Remaining tab is selected");
17 is(
tabbrowser.selectedBrowser, newBrowser,
"Browser for remaining tab is selected");
18 is(
tabbrowser.mTabBox.selectedPanel, newBrowser.parentNode,
"Panel for remaining tab is selected");
31 win.addEventListener(
"load",
function () {
32 win.removeEventListener(
"load",
arguments.callee,
false);
34 var
tab = win.gBrowser.tabContainer.firstChild;
35 var
browser = tab.linkedBrowser;
37 browser.addEventListener(
"load",
function () {
38 browser.removeEventListener(
"load",
arguments.callee,
true);
40 executeSoon(
function () {
50 browser.contentWindow.location =
51 "chrome://mochikit/content/browser/browser/base/content/test/test_bug462673.html";
return!aWindow arguments!aWindow arguments[0]