Bug 713294 - send quit-application in test_privatebrowsing_downloadLastDir_c.js. r=mak.

This commit is contained in:
Rafael Ávila de Espíndola 2011-12-28 12:27:23 -05:00
parent 0de1d98af2
commit e4e5bfcaae

View File

@ -153,6 +153,10 @@ function run_test()
do_check_eq(gDownloadLastDir.file.path, dir3.path);
// cleanup
Cc["@mozilla.org/observer-service;1"]
.getService(Ci.nsIObserverService)
.notifyObservers(null, "quit-application", null);
prefsService.clearUserPref("browser.privatebrowsing.keep_current_session");
[dir1, dir2, dir3].forEach(function(dir) dir.remove(true));
}