Home | History | Annotate | Download | only in ManualTests
      1 <html>
      2 <script>
      3 function test() {
      4     function transactionCallback()
      5     {
      6         document.getElementById("result").innerHTML = "Callback was called. Test passed";
      7     }
      8     var db = openDatabase("DatabaseCallbackDeferred", "1.0", "", 1);
      9     db.transaction(function(tx) { tx.executeSql("CREATE TABLE IF NOT EXISTS CallbackDeferredTest (randomData)", []); }, transactionCallback, transactionCallback);
     10 
     11     alert("Wait for a few seconds and close it");
     12 }
     13 </script>
     14 <body onload="test()">
     15 <p id="result">Wait...</p>
     16 </body>
     17 </html>
     18