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 const PREF_MATCH_OS_LOCALE = "intl.locale.matchOS";
7 const PREF_SELECTED_LOCALE = "general.useragent.locale";
9 const ADDON = "test_bug371495";
10 const ID = "bug371495@tests.mozilla.org";
12 function run_test()
13 {
14 // Setup for test
15 do_test_pending();
16 createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "1");
18 // Install test add-on
19 startupManager();
20 installAllFiles([do_get_addon(ADDON)], function() {
21 AddonManager.getAddonByID(ID, function(addon) {
22 do_check_neq(addon, null);
23 do_check_eq(addon.name, "Test theme");
24 restartManager();
26 AddonManager.getAddonByID(ID, function(addon) {
27 do_check_neq(addon, null);
28 do_check_eq(addon.optionsURL, null);
29 do_check_eq(addon.aboutURL, null);
31 do_execute_soon(do_test_finished);
32 });
33 });
34 });
35 }