summaryrefslogtreecommitdiffstats
path: root/browser/components/extensions/test/browser/browser_unified_extensions_disabled.js
blob: 3bc5d197828a73453543524484f639691739bc87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */

"use strict";

add_task(async function test_addons_themes_widget() {
  const addonsAndThemesWidgetId = "add-ons-button";

  ok(
    !Services.prefs.getBoolPref("extensions.unifiedExtensions.enabled", false),
    "expected unified extensions pref to be disabled"
  );

  CustomizableUI.addWidgetToArea(
    addonsAndThemesWidgetId,
    CustomizableUI.AREA_NAVBAR
  );

  let addonsButton = document.getElementById(addonsAndThemesWidgetId);
  ok(addonsButton, "expected add-ons and themes button");
});