OSDN Git Service

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