mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Make browser_bug462289.js work with tabs on top
This commit is contained in:
parent
d60cfdf95a
commit
678c44461c
@ -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, {});
|
||||
|
Loading…
Reference in New Issue
Block a user