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: var ADDONS = [ michael@0: "test_bootstrap2_1", // restartless addon michael@0: "test_bootstrap1_4", // old-school addon michael@0: "test_jetpack" // sdk addon michael@0: ]; michael@0: michael@0: var IDS = [ michael@0: "bootstrap1@tests.mozilla.org", michael@0: "bootstrap2@tests.mozilla.org", michael@0: "jetpack@tests.mozilla.org" michael@0: ]; michael@0: michael@0: function run_test() { michael@0: do_test_pending(); michael@0: michael@0: createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "2", "2"); michael@0: michael@0: startupManager(); michael@0: AddonManager.checkCompatibility = false; michael@0: michael@0: installAllFiles(ADDONS.map(do_get_addon), function () { michael@0: restartManager(); michael@0: michael@0: AddonManager.getAddonsByIDs(IDS, function([a1, a2, a3]) { michael@0: do_check_eq(a1.isDebuggable, false); michael@0: do_check_eq(a2.isDebuggable, true); michael@0: do_check_eq(a3.isDebuggable, true); michael@0: do_test_finished(); michael@0: }); michael@0: }, true); michael@0: }