| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <script> | 2 <script> |
| 3 | 3 |
| 4 // Open a Web SQL database. | 4 // Open a Web SQL database. |
| 5 var g_db = null; | 5 var g_db = null; |
| 6 if (typeof window.openDatabase == "undefined") { | 6 if (typeof window.openDatabase == "undefined") { |
| 7 document.write("Error: Web SQL databases are not supported."); | 7 document.write("Error: Web SQL databases are not supported."); |
| 8 } | 8 } |
| 9 try { | 9 try { |
| 10 g_db = openDatabase("test", "1.0", "test database", 1024 * 1024); | 10 g_db = openDatabase("test", "1.0", "test database", 1024 * 1024); |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 sendValueToTest("could not find row with index: " + index); | 127 sendValueToTest("could not find row with index: " + index); |
| 128 }, | 128 }, |
| 129 function(tx, error) { | 129 function(tx, error) { |
| 130 sendValueToTest("findId error: " + error); | 130 sendValueToTest("findId error: " + error); |
| 131 }); | 131 }); |
| 132 }); | 132 }); |
| 133 } | 133 } |
| 134 | 134 |
| 135 function sendValueToTest(value) { | 135 function sendValueToTest(value) { |
| 136 //alert(value); | 136 //alert(value); |
| 137 window.domAutomationController.setAutomationId(0); | |
| 138 window.domAutomationController.send(value); | 137 window.domAutomationController.send(value); |
| 139 } | 138 } |
| 140 | 139 |
| 141 </script> | 140 </script> |
| 142 | 141 |
| 143 <body> | 142 <body> |
| 144 This page is used for testing Web SQL databases. | 143 This page is used for testing Web SQL databases. |
| 145 </body> | 144 </body> |
| 146 </html> | 145 </html> |
| OLD | NEW |