1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/base/content/test/general/browser_bug565575.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,13 @@ 1.4 +function test() { 1.5 + gBrowser.selectedBrowser.focus(); 1.6 + BrowserOpenTab(); 1.7 + ok(gURLBar.focused, "location bar is focused for a new tab"); 1.8 + 1.9 + gBrowser.selectedTab = gBrowser.tabs[0]; 1.10 + ok(!gURLBar.focused, "location bar isn't focused for the previously selected tab"); 1.11 + 1.12 + gBrowser.selectedTab = gBrowser.tabs[1]; 1.13 + ok(gURLBar.focused, "location bar is re-focused when selecting the new tab"); 1.14 + 1.15 + gBrowser.removeCurrentTab(); 1.16 +}