browser_1058573_showToolbarsDropdown.js (837B)
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/. */ 4 5 "use strict"; 6 7 add_task(async function () { 8 info("Check that toggleable toolbars dropdown in always shown"); 9 10 info("Remove all possible custom toolbars"); 11 await removeCustomToolbars(); 12 13 info("Enter customization mode"); 14 await startCustomizing(); 15 16 let toolbarsToggle = document.getElementById( 17 "customization-toolbar-visibility-button" 18 ); 19 ok(toolbarsToggle, "The toolbars toggle dropdown exists"); 20 ok( 21 !toolbarsToggle.hasAttribute("hidden"), 22 "The toolbars toggle dropdown is displayed" 23 ); 24 }); 25 26 add_task(async function asyncCleanup() { 27 info("Exit customization mode"); 28 await endCustomizing(); 29 });