summaryrefslogtreecommitdiffstats
path: root/browser/components/customizableui/test/browser_1089591_still_customizable_after_reset.js
diff options
context:
space:
mode:
Diffstat (limited to 'browser/components/customizableui/test/browser_1089591_still_customizable_after_reset.js')
-rw-r--r--browser/components/customizableui/test/browser_1089591_still_customizable_after_reset.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/browser/components/customizableui/test/browser_1089591_still_customizable_after_reset.js b/browser/components/customizableui/test/browser_1089591_still_customizable_after_reset.js
new file mode 100644
index 0000000000..b0bbbd726c
--- /dev/null
+++ b/browser/components/customizableui/test/browser_1089591_still_customizable_after_reset.js
@@ -0,0 +1,24 @@
+"use strict";
+
+// Dragging the elements again after a reset should work
+add_task(async function () {
+ await 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);
+ await gCustomizeMode.reset();
+ 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);
+
+ await endCustomizing();
+});
+
+add_task(async function asyncCleanup() {
+ await resetCustomization();
+});