Bug 1129794 - Remove 'firefox-appdir = browser' from places/autocomplete xpcshell test. r=mak
authorHiroyuki Ikezoe <hiikezoe@mozilla-japan.org>
Wed, 04 Feb 2015 22:24:00 +0100
changeset 242066 acbdb86043f320b69e98baea0f47c3f8447173c8
parent 242065 276be70d7b06c0bef84419d3adf85a1d7a7e5e10
child 242067 5975847e7d0b7c49f9e71341584b106908914c03
push id634
push usermozilla@noorenberghe.ca
push dateTue, 10 Feb 2015 22:34:30 +0000
reviewersmak
bugs1129794
milestone38.0a1
Bug 1129794 - Remove 'firefox-appdir = browser' from places/autocomplete xpcshell test. r=mak
toolkit/components/places/tests/autocomplete/test_tabmatches.js
toolkit/components/places/tests/autocomplete/xpcshell.ini
--- a/toolkit/components/places/tests/autocomplete/test_tabmatches.js
+++ b/toolkit/components/places/tests/autocomplete/test_tabmatches.js
@@ -1,15 +1,19 @@
 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*-
  * vim:set ts=2 sw=2 sts=2 et:
  * 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/. */
 
-let gTabRestrictChar = prefs.getCharPref("browser.urlbar.restrict.openpage");
+let gTabRestrictChar = "%";
+prefs.setCharPref("browser.urlbar.restrict.openpage", gTabRestrictChar);
+do_register_cleanup(() => {
+  prefs.clearUserPref("browser.urlbar.restrict.openpage");
+});
 
 let kSearchParam = "enable-actions";
 
 let kURIs = [
   "http://abc.com/",
   "moz-action:switchtab,http://abc.com/",
   "http://xyz.net/",
   "moz-action:switchtab,http://xyz.net/",
--- a/toolkit/components/places/tests/autocomplete/xpcshell.ini
+++ b/toolkit/components/places/tests/autocomplete/xpcshell.ini
@@ -1,12 +1,11 @@
 [DEFAULT]
 head = head_autocomplete.js
 tail = 
-firefox-appdir = browser
 skip-if = toolkit == 'android' || toolkit == 'gonk'
 
 [test_416211.js]
 [test_416214.js]
 [test_417798.js]
 [test_418257.js]
 [test_422277.js]
 [test_autocomplete_on_value_removed_479089.js]