Attempt to fix oragne. Backout should not have caused this. The test is not cleaning up after itself. No bug
git-svn-id: svn://10.0.0.236/trunk@255177 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
f785f00683
commit
62292fbdd3
@ -5,6 +5,13 @@
|
|||||||
// mozIStorageStatement::getColumnName of a statement created with
|
// mozIStorageStatement::getColumnName of a statement created with
|
||||||
// "PRAGMA user_version" or "PRAGMA schema_version"
|
// "PRAGMA user_version" or "PRAGMA schema_version"
|
||||||
function run_test() {
|
function run_test() {
|
||||||
|
var file = Components.classes["@mozilla.org/file/directory_service;1"]
|
||||||
|
.getService(Components.interfaces.nsIProperties)
|
||||||
|
.get("TmpD", Components.interfaces.nsIFile);
|
||||||
|
file.append("bug-365166.sqlite");
|
||||||
|
if (file.exists())
|
||||||
|
file.remove(false);
|
||||||
|
|
||||||
test('user');
|
test('user');
|
||||||
test('schema');
|
test('schema');
|
||||||
|
|
||||||
@ -13,10 +20,6 @@ function run_test() {
|
|||||||
var colName = param + "_version";
|
var colName = param + "_version";
|
||||||
var sql = "PRAGMA " + colName;
|
var sql = "PRAGMA " + colName;
|
||||||
|
|
||||||
var file = Components.classes["@mozilla.org/file/directory_service;1"]
|
|
||||||
.getService(Components.interfaces.nsIProperties)
|
|
||||||
.get("TmpD", Components.interfaces.nsIFile);
|
|
||||||
file.append("bug-365166.sqlite");
|
|
||||||
var storageService = Components.classes["@mozilla.org/storage/service;1"].
|
var storageService = Components.classes["@mozilla.org/storage/service;1"].
|
||||||
getService(Components.interfaces.mozIStorageService);
|
getService(Components.interfaces.mozIStorageService);
|
||||||
var conn = storageService.openDatabase(file);
|
var conn = storageService.openDatabase(file);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user