2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2009-09-22 00:46:32 -07:00
|
|
|
*/
|
|
|
|
|
2013-02-15 13:00:25 -08:00
|
|
|
Components.utils.import("resource://gre/modules/Services.jsm");
|
2009-09-22 00:46:32 -07:00
|
|
|
|
|
|
|
function run_test() {
|
|
|
|
do_get_profile_startup();
|
|
|
|
|
|
|
|
var plugin = get_test_plugintag();
|
|
|
|
do_check_true(plugin == null);
|
|
|
|
|
|
|
|
// Initialises a profile folder
|
|
|
|
do_get_profile();
|
|
|
|
|
|
|
|
var plugin = get_test_plugintag();
|
|
|
|
do_check_false(plugin == null);
|
2013-02-15 13:00:25 -08:00
|
|
|
|
|
|
|
// Clean up
|
|
|
|
Services.prefs.clearUserPref("plugin.importedState");
|
2009-09-22 00:46:32 -07:00
|
|
|
}
|