blob: 36ec5b8cac5e4a58260876bb539fb8bab604cf49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<html>
<head>
<script>
function writeMessageToLog(message)
{
document.getElementById("console").innerText += message + "\n";
}
function executeEmptyStatement(transaction)
{
transaction.executeSql("");
writeMessageToLog("Executed an empty statement. If you didn't see a crash or assertion, the test passed.");
if (window.layoutTestController)
layoutTestController.notifyDone();
}
function runTest()
{
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
var db = openDatabase("EmptyStatementTest", "1.0", "Database for an empty statement test", 1);
db.transaction(executeEmptyStatement);
}
</script>
</head>
<body onload="runTest()">
<pre id="console"></pre>
</body>
</html>
|