Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 "use strict";
7 // Attempting to drag the menubar to the navbar shouldn't work.
8 add_task(function() {
9 yield startCustomizing();
10 let menuItems = document.getElementById("menubar-items");
11 let navbar = document.getElementById("nav-bar");
12 let menubar = document.getElementById("toolbar-menubar");
13 // Force the menu to be shown.
14 const kAutohide = menubar.getAttribute("autohide");
15 menubar.setAttribute("autohide", "false");
16 simulateItemDrag(menuItems, navbar.customizationTarget);
18 is(getAreaWidgetIds("nav-bar").indexOf("menubar-items"), -1, "Menu bar shouldn't be in the navbar.");
19 ok(!navbar.querySelector("#menubar-items"), "Shouldn't find menubar items in the navbar.");
20 ok(menubar.querySelector("#menubar-items"), "Should find menubar items in the menubar.");
21 isnot(getAreaWidgetIds("toolbar-menubar").indexOf("menubar-items"), -1,
22 "Menubar items shouldn't be missing from the navbar.");
23 menubar.setAttribute("autohide", kAutohide);
24 yield endCustomizing();
25 });
27 add_task(function asyncCleanup() {
28 yield endCustomizing();
29 yield resetCustomization();
30 });