7 testRunner
.notifyDone();
12 if (window
.testRunner
) {
13 testRunner
.clearAllDatabases();
14 testRunner
.dumpAsText();
15 testRunner
.waitUntilDone();
19 var db
= openDatabase("NullCallbacks", "1.0", "Test for null callbacks.", 1);
20 db
.transaction(function(tx
) {
21 tx
.executeSql("CREATE TABLE IF NOT EXISTS Test (Foo INT)", null);
22 tx
.executeSql("INSERT INTO Test VALUES (?)", [1], null, null);
23 tx
.executeSql("INSERT INTO Test VALUES (?)", [2], null);
24 tx
.executeSql("INSERT INTO Test VALUES (3)", null, null, null);
25 tx
.executeSql("INSERT INTO Test VALUES (?)", [4], null,
26 function(tx
, error
) {});
29 db
.transaction(function(tx
) {
30 tx
.executeSql("INSERT INTO Test VALUES (?)", [5]);
31 }, null, function() { finishTest(); });
33 document
.getElementById("console").innerHTML
= "FAIL";
41 <body onload=
"runTest()">
42 This test checks that 'null' can be used wherever we expect an optional callback.
43 <pre id=
"console">PASS
</pre>