Bug 1456148 - Set supportedCountries for test_address_level_1_submission.html so it works on non-Nightly. r=MattN
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Thu, 26 Apr 2018 22:07:19 -0700
changeset 472106 0c768d3f9ba4a1171d208ce9eed8f52cd86a7858
parent 472105 35223e75d84e21ff40c0833fb4cf02547941d361
child 472107 2d813a44c44c1c28eeafdf7b43e3149f26d05a46
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMattN
bugs1456148
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1456148 - Set supportedCountries for test_address_level_1_submission.html so it works on non-Nightly. r=MattN MozReview-Commit-ID: AEKee22mbLS
browser/extensions/formautofill/test/mochitest/test_address_level_1_submission.html
--- a/browser/extensions/formautofill/test/mochitest/test_address_level_1_submission.html
+++ b/browser/extensions/formautofill/test/mochitest/test_address_level_1_submission.html
@@ -24,16 +24,21 @@ const TEST_ADDRESSES = [{
   organization: "Mozilla",
   "street-address": "123 Sesame Street",
   "address-level1": "AL",
   country: "DE",
   timesUsed: 1,
 }];
 
 add_task(async function test_DE_is_valid_testcase() {
+  await SpecialPowers.pushPrefEnv({
+    set: [
+      ["extensions.formautofill.supportedCountries", "US,CA,DE"],
+    ],
+  });
   let chromeScript = SpecialPowers.loadChromeScript(function test_country_data() {
     ChromeUtils.import("resource://formautofill/FormAutofillUtils.jsm");
     let data = AddressDataLoader.getData("DE");
     /* global addMessageListener */
     addMessageListener("CheckSubKeys", () => {
       return !data.defaultLocale.sub_keys;
     });
   });