Bug 1482235 - Import AppInfo for test. r=Mardak
authorMichael Kaply <mozilla@kaply.com>
Thu, 09 Aug 2018 20:31:06 +0000
changeset 430848 0d3b8e14e25fc6956bbcf8be58ad9f2be3eef5bd
parent 430847 329e64cecd9822d76fff76c0ef42b0f75ede30dd
child 430849 e3a6f64071f2f1f82da639a7d09749839d5f053b
push id34414
push userebalazs@mozilla.com
push dateFri, 10 Aug 2018 09:15:58 +0000
treeherdermozilla-central@64e80e767f81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMardak
bugs1482235
milestone63.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 1482235 - Import AppInfo for test. r=Mardak Differential Revision: https://phabricator.services.mozilla.com/D3058
toolkit/components/places/tests/unifiedcomplete/test_PlacesSearchAutocompleteProvider.js
--- a/toolkit/components/places/tests/unifiedcomplete/test_PlacesSearchAutocompleteProvider.js
+++ b/toolkit/components/places/tests/unifiedcomplete/test_PlacesSearchAutocompleteProvider.js
@@ -1,13 +1,15 @@
 /* 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/. */
 
 ChromeUtils.import("resource://gre/modules/PlacesSearchAutocompleteProvider.jsm");
+ChromeUtils.import("resource://testing-common/AppInfo.jsm");
+updateAppInfo();
 
 add_task(async function() {
     // Tell the search service we are running in the US.  This also has the
     // desired side-effect of preventing our geoip lookup.
    Services.prefs.setCharPref("browser.search.region", "US");
    Services.prefs.setBoolPref("browser.search.geoSpecificDefaults", false);
 
    Services.search.restoreDefaultEngines();