6 testRunner
.notifyDone();
12 db
= openDatabaseWithSuffix("ChangeVersion", "", "Test that changing a database version doesn't kill our handle to it", 1);
13 var version
= db
.version
;
14 var newVersion
= version
? (parseInt(version
) + 1).toString() : "1";
15 db
.changeVersion(version
, newVersion
, function(tx
) {
16 log("changeVersion: transaction callback");
18 log("changeVersion: error callback: " + error
.message
);
20 log("changeVersion: success callback");
25 log("changeVersion exception: " + e
);
33 db
.transaction(function(tx
) {
34 tx
.executeSql("SELECT * from FooBar", [], function(tx
) {
35 log("transaction: statement callback");
37 }, function(tx
, error
) {
38 log("transaction: statement error callback: " + error
.message
);
43 log("transaction exception: " + e
);