Bug 939965 - [Australis] Use ensureReady to force panel menu construction instead of opening it. r=Gijs.

This commit is contained in:
Mike Conley 2013-11-20 12:12:29 -05:00
parent 71a5f95334
commit 2c8ec1fe50

View File

@ -114,14 +114,7 @@ let gTests = [
setup: startCustomizing,
run: function() {
otherWin = yield openAndLoadWindow(null, true);
// Open and close the panel to force its construction:
let shownPromise = promisePanelShown(otherWin);
otherWin.PanelUI.toggle({type: "command"});
yield shownPromise;
let hiddenPromise = promisePanelHidden(otherWin);
otherWin.PanelUI.toggle({type: "command"});
yield hiddenPromise;
yield otherWin.PanelUI.ensureReady();
ok(CustomizableUI.inDefaultState, "Should start in default state");
for (let widgetId of [kXULWidgetId, kAPIWidgetId]) {