mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
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:
parent
2019309068
commit
3ab01afc42
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user