summaryrefslogtreecommitdiffstats
path: root/browser/components/enterprisepolicies/tests/xpcshell/test_3rdparty.js
blob: 0f53cc80c9edeca3800dfb5b50e044432f31e92e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";

add_task(async function setup() {
  await setupPolicyEngineWithJson({
    policies: {
      "3rdparty": {
        Extensions: {
          "3rdparty-policy@mozilla.com": {
            string: "value",
          },
        },
      },
    },
  });

  let extensionPolicy = Services.policies.getExtensionPolicy(
    "3rdparty-policy@mozilla.com"
  );
  deepEqual(extensionPolicy, { string: "value" });
});