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:
Steven MacLeod 2014-08-01 16:28:07 -04:00
parent 4bffe7ee81
commit ad82f817e0

View File

@ -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.");