michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: */ michael@0: michael@0: const PREF_MATCH_OS_LOCALE = "intl.locale.matchOS"; michael@0: const PREF_SELECTED_LOCALE = "general.useragent.locale"; michael@0: michael@0: const ADDON = "test_bug371495"; michael@0: const ID = "bug371495@tests.mozilla.org"; michael@0: michael@0: function run_test() michael@0: { michael@0: // Setup for test michael@0: do_test_pending(); michael@0: createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "1"); michael@0: michael@0: // Install test add-on michael@0: startupManager(); michael@0: installAllFiles([do_get_addon(ADDON)], function() { michael@0: AddonManager.getAddonByID(ID, function(addon) { michael@0: do_check_neq(addon, null); michael@0: do_check_eq(addon.name, "Test theme"); michael@0: restartManager(); michael@0: michael@0: AddonManager.getAddonByID(ID, function(addon) { michael@0: do_check_neq(addon, null); michael@0: do_check_eq(addon.optionsURL, null); michael@0: do_check_eq(addon.aboutURL, null); michael@0: michael@0: do_execute_soon(do_test_finished); michael@0: }); michael@0: }); michael@0: }); michael@0: }