Make browser_bug462289.js work with tabs on top

This commit is contained in:
Dão Gottwald 2010-06-24 19:55:39 +02:00
parent d60cfdf95a
commit 678c44461c

View File

@ -22,8 +22,13 @@ function step3()
{
isnot(document.activeElement, tab1, "mouse on tab again activeElement");
document.getElementById("searchbar").focus();
EventUtils.synthesizeKey("VK_TAB", { });
if (gNavToolbox.getAttribute("tabsontop") == "true") {
gURLBar.focus();
EventUtils.synthesizeKey("VK_TAB", {shiftKey: true});
} else {
document.getElementById("searchbar").focus();
EventUtils.synthesizeKey("VK_TAB", {});
}
is(document.activeElement, tab1, "tab key to tab activeElement");
EventUtils.synthesizeMouse(tab1, 2, 2, {});