summaryrefslogtreecommitdiffstats
path: root/toolkit/modules/tests/xpcshell/RegionTestUtils.sys.mjs
blob: 6cb238781a7e62f26a4e8530513843c72aae4d7f (plain)
1
2
3
4
5
6
7
8
9
10
export const RegionTestUtils = Object.freeze({
  REGION_URL_PREF: "browser.region.network.url",

  setNetworkRegion(region) {
    Services.prefs.setCharPref(
      this.REGION_URL_PREF,
      `data:application/json,{"country_code": "${region}"}`
    );
  },
});