2010-01-24 08:10:07 -08:00
|
|
|
function test() {
|
2010-03-22 09:04:18 -07:00
|
|
|
var tabCount = gBrowser.tabs.length;
|
2010-01-24 08:10:07 -08:00
|
|
|
content.focus();
|
|
|
|
browserDOMWindow.openURI(makeURI("about:blank"),
|
|
|
|
null,
|
|
|
|
Ci.nsIBrowserDOMWindow.OPEN_NEWTAB,
|
|
|
|
Ci.nsIBrowserDOMWindow.OPEN_EXTERNAL);
|
2010-03-22 09:04:18 -07:00
|
|
|
is(gBrowser.tabs.length, tabCount + 1,
|
2010-01-24 08:10:07 -08:00
|
|
|
"'-new-tab about:blank' opens a new tab");
|
2010-03-22 09:04:18 -07:00
|
|
|
is(gBrowser.selectedTab, gBrowser.tabs[tabCount],
|
2010-01-24 08:10:07 -08:00
|
|
|
"'-new-tab about:blank' selects the new tab");
|
|
|
|
is(document.activeElement, gURLBar.inputField,
|
|
|
|
"'-new-tab about:blank' focuses the location bar");
|
|
|
|
gBrowser.removeCurrentTab();
|
|
|
|
}
|