michael@0: /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim:set ts=2 sw=2 sts=2 et: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /** michael@0: * Test nsSearchService with nested jar: uris, without async initialization michael@0: */ michael@0: function run_test() { michael@0: updateAppInfo(); michael@0: michael@0: do_load_manifest("data/chrome.manifest"); michael@0: michael@0: let url = "chrome://testsearchplugin/locale/searchplugins/"; michael@0: Services.prefs.setCharPref("browser.search.jarURIs", url); michael@0: michael@0: Services.prefs.setBoolPref("browser.search.loadFromJars", true); michael@0: michael@0: // The search service needs to be started after the jarURIs pref has been michael@0: // set in order to initiate it correctly michael@0: let engine = Services.search.getEngineByName("bug645970"); michael@0: do_check_neq(engine, null); michael@0: Services.obs.notifyObservers(null, "quit-application", null); michael@0: } michael@0: