Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
4 function run_test() {
5 removeMetadata();
6 removeCacheFile();
8 do_load_manifest("data/chrome.manifest");
10 let url = "chrome://testsearchplugin/locale/searchplugins/";
11 Services.prefs.setCharPref("browser.search.jarURIs", url);
12 Services.prefs.setBoolPref("browser.search.loadFromJars", true);
14 do_check_false(Services.search.isInitialized);
16 // test engines from dir are loaded.
17 let engines = Services.search.getEngines();
18 do_check_true(engines.length > 1);
20 do_check_true(Services.search.isInitialized);
22 // test jar engine is loaded ok.
23 let engine = Services.search.getEngineByName("bug645970");
24 do_check_neq(engine, null);
26 Services.prefs.clearUserPref("browser.search.jarURIs");
27 Services.prefs.clearUserPref("browser.search.loadFromJars");
28 }