bug 445339 - test_bug_406857.js crashing intermittently on Linux unittest VMs. disable alert service notifications. r=gavin

This commit is contained in:
Ted Mielczarek 2008-07-22 16:13:35 -04:00
parent 5fa6e8e5a0
commit d3a645e267

View File

@ -105,7 +105,7 @@ function cleanup()
// removing rdf
var rdfFile = dirSvc.get("DLoads", Ci.nsIFile);
if (rdfFile.exists()) rdfFile.remove(true);
// removing database
var dbFile = dirSvc.get("ProfD", Ci.nsIFile);
dbFile.append("downloads.sqlite");
@ -168,7 +168,7 @@ function getDownloadListener()
gDownloadCount--;
do_test_finished();
}
if (gDownloadCount == 0)
httpserv.stop();
},
@ -178,5 +178,9 @@ function getDownloadListener()
};
}
// Disable alert service notifications
let ps = Cc['@mozilla.org/preferences-service;1'].getService(Ci.nsIPrefBranch);
ps.setBoolPref("browser.download.manager.showAlertOnComplete", false);
cleanup();