Bug 1089695 - Fixing wrong dependency in Places shutdown. r=mak

This commit is contained in:
David Rajchenbach-Teller
2015-08-10 11:07:54 +02:00
parent 7b1614acf4
commit cb15aec7a6
3 changed files with 56 additions and 23 deletions

View File

@@ -71,13 +71,11 @@ add_task(function* test_execute() {
}
do_print("Add cache.");
yield storeCache(FTP_URL, "testData");
});
add_task(function* run_test_continue() {
do_print("Simulate and wait shutdown.");
yield shutdownPlaces();
let stmt = DBConn().createStatement(
let stmt = DBConn(true).createStatement(
"SELECT id FROM moz_places WHERE url = :page_url "
);
@@ -93,13 +91,7 @@ add_task(function* run_test_continue() {
do_print("Check cache");
// Check cache.
let promiseCacheChecked = checkCache(FTP_URL);
do_print("Shutdown the download manager");
// Shutdown the download manager.
Services.obs.notifyObservers(null, "quit-application", null);
yield promiseCacheChecked;
yield checkCache(FTP_URL);
});
function storeCache(aURL, aContent) {