michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: michael@0: // Test nsISessionStartup.sessionType in the following scenario: michael@0: // - no sessionstore.js; michael@0: // - the session store has been loaded, so no need to go michael@0: // through the synchronous fallback michael@0: michael@0: function run_test() { michael@0: do_get_profile(); michael@0: // Initialize the profile (the session startup uses it) michael@0: michael@0: do_test_pending(); michael@0: let startup = Cc["@mozilla.org/browser/sessionstartup;1"]. michael@0: getService(Ci.nsISessionStartup); michael@0: michael@0: afterSessionStartupInitialization(function cb() { michael@0: do_check_eq(startup.sessionType, Ci.nsISessionStartup.NO_SESSION); michael@0: do_test_finished(); michael@0: }); michael@0: }