summaryrefslogtreecommitdiffstats
path: root/comm/mail/test/browser/override-main-menu-collapse/browser_overrideMainmenuCollapse.js
blob: 5a7c9393f4c15826a90cd805565189e7d64f4f33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* 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/. */

/**
 * Tests that the main menu will NOT be collapsed by default if Thunderbird
 * starts with no accounts created, and mail.main_menu.collapse_by_default set
 * to false.
 */

"use strict";

add_task(function test_main_menu_not_collapsed() {
  let mainMenu = document.getElementById("toolbar-menubar");
  Assert.ok(
    !mainMenu.hasAttribute("autohide"),
    "The main menu should not have the autohide attribute."
  );
});