summaryrefslogtreecommitdiff
path: root/browser/base/content/test/browser_bug565575.js
blob: a6a2270102c04e29b55eb6d88b5422b77a3cef10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function test() {
  gBrowser.selectedBrowser.focus();
  BrowserOpenTab();
  ok(gURLBar.focused, "location bar is focused for a new tab");

  gBrowser.selectedTab = gBrowser.tabs[0];
  ok(!gURLBar.focused, "location bar isn't focused for the previously selected tab");

  gBrowser.selectedTab = gBrowser.tabs[1];
  ok(gURLBar.focused, "location bar is re-focused when selecting the new tab");

  gBrowser.removeCurrentTab();
}