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:
Shawn Wilsher 2008-11-07 19:04:30 -05:00
Родитель 7544608bd0
Коммит 423b3c7123
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -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);
}