mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 11:13:29 +00:00
Bug 463578 - Assertion running browser/components/privatebrowsing/test/unit/test_privatebrowsing_exit.js in debug builds
r=gavin not part of the default build (test only change)
This commit is contained in:
parent
07d63fef7a
commit
e863d8e053
@ -44,8 +44,6 @@ function run_test() {
|
||||
getService(Ci.nsIObserverService);
|
||||
var pb = Cc["@mozilla.org/privatebrowsing;1"].
|
||||
getService(Ci.nsIPrivateBrowsingService);
|
||||
var appStartup = Cc["@mozilla.org/toolkit/app-startup;1"].
|
||||
getService(Ci.nsIAppStartup);
|
||||
var prefBranch = Cc["@mozilla.org/preferences-service;1"].
|
||||
getService(Ci.nsIPrefBranch);
|
||||
prefBranch.setBoolPref("browser.privatebrowsing.keep_current_session", true);
|
||||
@ -92,8 +90,8 @@ function run_test() {
|
||||
// enter the private browsing mode
|
||||
pb.privateBrowsingEnabled = true;
|
||||
|
||||
// exit and leave the test pending
|
||||
// Simulate an exit
|
||||
expectedQuitting = true;
|
||||
do_test_pending();
|
||||
appStartup.quit(Ci.nsIAppStartup.eForceQuit);
|
||||
os.notifyObservers(null, "quit-application-granted", null);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user