Bug 1155348, e10s, rewrite and reenable browser_bug565575, r=felipe

This commit is contained in:
Neil Deakin 2015-04-21 20:09:13 -04:00
parent 3669ae6d31
commit 6155b56fc5
2 changed files with 6 additions and 6 deletions

View File

@ -215,7 +215,6 @@ skip-if = e10s # Bug 1093373 - relies on browser.sessionHistory
[browser_bug562649.js]
[browser_bug563588.js]
[browser_bug565575.js]
skip-if = e10s
[browser_bug565667.js]
skip-if = toolkit != "cocoa"
[browser_bug567306.js]

View File

@ -1,13 +1,14 @@
function test() {
add_task(function* () {
gBrowser.selectedBrowser.focus();
BrowserOpenTab();
yield BrowserTestUtils.openNewForegroundTab(gBrowser, () => BrowserOpenTab(), false);
ok(gURLBar.focused, "location bar is focused for a new tab");
gBrowser.selectedTab = gBrowser.tabs[0];
yield BrowserTestUtils.switchTab(gBrowser, gBrowser.tabs[0]);
ok(!gURLBar.focused, "location bar isn't focused for the previously selected tab");
gBrowser.selectedTab = gBrowser.tabs[1];
yield BrowserTestUtils.switchTab(gBrowser, gBrowser.tabs[1]);
ok(gURLBar.focused, "location bar is re-focused when selecting the new tab");
gBrowser.removeCurrentTab();
}
});