Test only change to make tests clean up better by using the free profile directory given to us. No bug. r="duh, why didn't we do this sooner"

This commit is contained in:
Shawn Wilsher 2009-09-30 14:17:06 -07:00
parent 2019309068
commit 3ab01afc42
2 changed files with 3 additions and 2 deletions

View File

@ -39,12 +39,13 @@ const Ci = Components.interfaces;
const Cc = Components.classes;
const Cr = Components.results;
do_get_profile();
var dirSvc = Cc["@mozilla.org/file/directory_service;1"].
getService(Ci.nsIProperties);
function getTestDB()
{
var db = dirSvc.get("CurProcD", Ci.nsIFile);
var db = dirSvc.get("ProfD", Ci.nsIFile);
db.append("test_storage.sqlite");
return db;
}

View File

@ -56,7 +56,7 @@ function TestBody()
this.dbFile = new Array();
for (var curConn in CONN_LIST) {
var db = dirSvc.get("CurProcD", Ci.nsIFile);
var db = dirSvc.get("ProfD", Ci.nsIFile);
db.append("test_storage_" + curConn + ".sqlite");
this.dbFile[curConn] = db;
}