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: Components.utils.import("resource://gre/modules/Services.jsm"); michael@0: michael@0: function run_test() { michael@0: do_get_profile_startup(); michael@0: michael@0: var plugin = get_test_plugintag(); michael@0: do_check_true(plugin == null); michael@0: michael@0: // Initialises a profile folder michael@0: do_get_profile(); michael@0: michael@0: var plugin = get_test_plugintag(); michael@0: do_check_false(plugin == null); michael@0: michael@0: // Clean up michael@0: Services.prefs.clearUserPref("plugin.importedState"); michael@0: }