michael@0: function test() { michael@0: gBrowser.selectedBrowser.focus(); michael@0: BrowserOpenTab(); michael@0: ok(gURLBar.focused, "location bar is focused for a new tab"); michael@0: michael@0: gBrowser.selectedTab = gBrowser.tabs[0]; michael@0: ok(!gURLBar.focused, "location bar isn't focused for the previously selected tab"); michael@0: michael@0: gBrowser.selectedTab = gBrowser.tabs[1]; michael@0: ok(gURLBar.focused, "location bar is re-focused when selecting the new tab"); michael@0: michael@0: gBrowser.removeCurrentTab(); michael@0: }