mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
14 lines
426 B
JavaScript
14 lines
426 B
JavaScript
|
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();
|
||
|
}
|