Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 */
6 // Disables security checking our updates which haven't been signed
7 Services.prefs.setBoolPref(PREF_EM_CHECK_UPDATE_SECURITY, false);
8 Services.prefs.setBoolPref(PREF_EM_STRICT_COMPATIBILITY, false);
10 var ADDONS = [
11 "test_bug470377_1",
12 "test_bug470377_2",
13 "test_bug470377_3",
14 "test_bug470377_4",
15 "test_bug470377_5",
16 ];
18 Components.utils.import("resource://testing-common/httpd.js");
19 var server;
21 function run_test() {
22 do_test_pending();
23 createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "2", "2");
25 server = new HttpServer();
26 server.registerDirectory("/", do_get_file("data/test_bug470377"));
27 server.start(-1);
29 startupManager();
31 installAllFiles([do_get_addon(a) for each (a in ADDONS)], function() {
32 restartManager();
34 AddonManager.getAddonsByIDs(["bug470377_1@tests.mozilla.org",
35 "bug470377_2@tests.mozilla.org",
36 "bug470377_3@tests.mozilla.org",
37 "bug470377_4@tests.mozilla.org",
38 "bug470377_5@tests.mozilla.org"],
39 function([a1, a2, a3, a4, a5]) {
40 do_check_eq(a1, null);
41 do_check_neq(a2, null);
42 do_check_neq(a3, null);
43 do_check_neq(a4, null);
44 do_check_neq(a5, null);
46 server.stop(do_test_finished);
47 });
48 }, true);
49 }