toolkit/mozapps/extensions/test/xpcshell/test_bug371495.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:c55ae034d906
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 */
5
6 const PREF_MATCH_OS_LOCALE = "intl.locale.matchOS";
7 const PREF_SELECTED_LOCALE = "general.useragent.locale";
8
9 const ADDON = "test_bug371495";
10 const ID = "bug371495@tests.mozilla.org";
11
12 function run_test()
13 {
14 // Setup for test
15 do_test_pending();
16 createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "1");
17
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();
25
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);
30
31 do_execute_soon(do_test_finished);
32 });
33 });
34 });
35 }

mercurial