6 function writeMessageToLog(message
)
8 document
.getElementById("console").innerText
+= message
+ "\n";
11 function executeEmptyStatement(transaction
)
13 transaction
.executeSql("");
14 writeMessageToLog("Executed an empty statement. If you didn't see a crash or assertion, the test passed.");
15 if (window
.testRunner
)
16 testRunner
.notifyDone();
21 if (window
.testRunner
) {
22 testRunner
.dumpAsText();
23 testRunner
.waitUntilDone();
25 var db
= openDatabase("EmptyStatementTest", "1.0", "Database for an empty statement test", 1);
26 db
.transaction(executeEmptyStatement
);
32 <body onload=
"runTest()">
33 <pre id=
"console"></pre>