6 document
.getElementById("console").innerHTML
+= message
+ "<br>";
11 log("Test part 2 Complete");
12 if (window
.testRunner
)
13 testRunner
.notifyDone();
16 function errorFunction(error
)
18 log("Test failed - " + error
.message
);
24 db
.transaction(function(tx
) {
25 log("Inserting some data");
26 tx
.executeSql("INSERT INTO DataTest (testData) VALUES (?)", ["A"],
27 function(tx
, result
) { }, function(tx
, error
) { errorFunction(error
); });
28 }, function() { }, function() { finishTest(); });
33 if (window
.testRunner
) {
34 testRunner
.dumpAsText();
35 testRunner
.waitUntilDone();
39 var database
= openDatabase("DatabaseLockTest", "1.0", "Test for database locking", 5242880);
42 log("Error - could not open database");
50 <body onload=
"runTest()">