1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/mozapps/extensions/test/xpcshell/test_bug371495.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,35 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.7 + */ 1.8 + 1.9 +const PREF_MATCH_OS_LOCALE = "intl.locale.matchOS"; 1.10 +const PREF_SELECTED_LOCALE = "general.useragent.locale"; 1.11 + 1.12 +const ADDON = "test_bug371495"; 1.13 +const ID = "bug371495@tests.mozilla.org"; 1.14 + 1.15 +function run_test() 1.16 +{ 1.17 + // Setup for test 1.18 + do_test_pending(); 1.19 + createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "1"); 1.20 + 1.21 + // Install test add-on 1.22 + startupManager(); 1.23 + installAllFiles([do_get_addon(ADDON)], function() { 1.24 + AddonManager.getAddonByID(ID, function(addon) { 1.25 + do_check_neq(addon, null); 1.26 + do_check_eq(addon.name, "Test theme"); 1.27 + restartManager(); 1.28 + 1.29 + AddonManager.getAddonByID(ID, function(addon) { 1.30 + do_check_neq(addon, null); 1.31 + do_check_eq(addon.optionsURL, null); 1.32 + do_check_eq(addon.aboutURL, null); 1.33 + 1.34 + do_execute_soon(do_test_finished); 1.35 + }); 1.36 + }); 1.37 + }); 1.38 +}