Bug 1058573 - Add automated test for showing the toolbars dropdown in customization mode (even if the only toolbar available is the bookmarks toolbar). r=jaws
authorMihaela Velimiroviciu <mihaela.velimiroviciu@softvisioninc.eu>
Thu, 28 Aug 2014 11:39:49 +0300
changeset 202953 7c28c12de7aa682a907527a1ccf7774212666581
parent 202952 3f808f2f3a40cc38a82e16af6b8d0d7f85e1ec75
child 202954 99d6c547dccb7a1f192338f0425dc59f0a314fb4
push id27416
push userryanvm@gmail.com
push dateTue, 02 Sep 2014 17:59:34 +0000
treeherdermozilla-central@bfeddb24df7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1058573
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1058573 - Add automated test for showing the toolbars dropdown in customization mode (even if the only toolbar available is the bookmarks toolbar). r=jaws
browser/components/customizableui/test/browser.ini
browser/components/customizableui/test/browser_1058573_showToolbarsDropdown.js
--- a/browser/components/customizableui/test/browser.ini
+++ b/browser/components/customizableui/test/browser.ini
@@ -113,10 +113,11 @@ skip-if = os == "linux"
 [browser_993322_widget_notoolbar.js]
 [browser_995164_registerArea_during_customize_mode.js]
 [browser_996364_registerArea_different_properties.js]
 [browser_996635_remove_non_widgets.js]
 [browser_1003588_no_specials_in_panel.js]
 [browser_1007336_lwthemes_in_customize_mode.js]
 [browser_1008559_anchor_undo_restore.js]
 [browser_1042100_default_placements_update.js]
+[browser_1058573_showToolbarsDropdown.js]
 [browser_bootstrapped_custom_toolbar.js]
 [browser_panel_toggle.js]
new file mode 100644
--- /dev/null
+++ b/browser/components/customizableui/test/browser_1058573_showToolbarsDropdown.js
@@ -0,0 +1,25 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+"use strict";
+
+add_task(function() {
+  info("Check that toggleable toolbars dropdown in always shown");
+
+  info("Remove all possible custom toolbars");
+  yield removeCustomToolbars();
+
+  info("Enter customization mode");
+  yield startCustomizing();
+
+  let toolbarsToggle = document.getElementById("customization-toolbar-visibility-button");
+  ok(toolbarsToggle, "The toolbars toggle dropdown exists");
+  ok(!toolbarsToggle.hasAttribute("hidden"),
+     "The toolbars toggle dropdown is displayed");
+});
+
+add_task(function asyncCleanup() {
+  info("Exit customization mode");
+  yield endCustomizing();
+});