summaryrefslogtreecommitdiffstats
path: root/LayoutTests/storage/empty-statement.html
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/storage/empty-statement.html')
-rw-r--r--LayoutTests/storage/empty-statement.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/LayoutTests/storage/empty-statement.html b/LayoutTests/storage/empty-statement.html
new file mode 100644
index 0000000..36ec5b8
--- /dev/null
+++ b/LayoutTests/storage/empty-statement.html
@@ -0,0 +1,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>