зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1089591 - Customize mode should be customizable after reset. r=Gijs r=mconley
This commit is contained in:
Родитель
7a9a410d17
Коммит
a17d65a5d1
|
@ -1068,6 +1068,7 @@ CustomizeMode.prototype = {
|
|||
}
|
||||
this._removeDragHandlers(target);
|
||||
}
|
||||
this.areas.clear();
|
||||
}.bind(this)).then(null, ERROR);
|
||||
},
|
||||
|
||||
|
|
|
@ -150,3 +150,4 @@ skip-if = e10s # Bug 1088710
|
|||
[browser_1058573_showToolbarsDropdown.js]
|
||||
[browser_bootstrapped_custom_toolbar.js]
|
||||
[browser_panel_toggle.js]
|
||||
[browser_1089591_still_customizable_after_reset.js]
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
"use strict";
|
||||
|
||||
// Dragging the elements again after a reset should work
|
||||
add_task(function* () {
|
||||
yield startCustomizing();
|
||||
let historyButton = document.getElementById("wrapper-history-panelmenu");
|
||||
let devButton = document.getElementById("wrapper-developer-button");
|
||||
|
||||
ok(historyButton && devButton, "Draggable elements should exist");
|
||||
simulateItemDrag(historyButton, devButton);
|
||||
gCustomizeMode.reset();
|
||||
yield waitForCondition(() => !gCustomizeMode.resetting);
|
||||
ok(CustomizableUI.inDefaultState, "Should be back in default state");
|
||||
|
||||
historyButton = document.getElementById("wrapper-history-panelmenu");
|
||||
devButton = document.getElementById("wrapper-developer-button");
|
||||
ok(historyButton && devButton, "Draggable elements should exist");
|
||||
simulateItemDrag(historyButton, devButton);
|
||||
yield endCustomizing();
|
||||
});
|
||||
|
||||
add_task(function* asyncCleanup() {
|
||||
yield resetCustomization();
|
||||
});
|
Загрузка…
Ссылка в новой задаче