mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1027181 - Call click() instead of syntehsizing mouse events in customizableui test to ensure subview opens. r=mconley
--HG-- extra : rebase_source : 17b71f4b8a15cbbbe51adac514e4038afa1f2ca6
This commit is contained in:
parent
4bffe7ee81
commit
ad82f817e0
@ -19,7 +19,7 @@ add_task(function() {
|
||||
let historyButton = document.getElementById("history-panelmenu");
|
||||
let historySubview = document.getElementById("PanelUI-history");
|
||||
let subviewShownPromise = subviewShown(historySubview);
|
||||
EventUtils.synthesizeMouseAtCenter(historyButton, {});
|
||||
historyButton.click();
|
||||
yield subviewShownPromise;
|
||||
|
||||
let tabsFromOtherComputers = document.getElementById("sync-tabs-menuitem2");
|
||||
@ -34,7 +34,7 @@ add_task(function() {
|
||||
yield PanelUI.show({type: "command"});
|
||||
|
||||
subviewShownPromise = subviewShown(historySubview);
|
||||
EventUtils.synthesizeMouseAtCenter(historyButton, {});
|
||||
historyButton.click();
|
||||
yield subviewShownPromise;
|
||||
|
||||
is(tabsFromOtherComputers.hidden, false, "The Tabs From Other Computers menuitem should be shown when sync is enabled.");
|
||||
|
Loading…
Reference in New Issue
Block a user