Home | History | Annotate | Download | only in update-transactions
      1 <!DOCTYPE HTML>
      2 <html>
      3 <title>Update transactions</title>
      4 <script src="../head.js"></script>
      5 <script src="../common.js"></script>
      6 <script>
      7 var randomString = getRandomString();
      8 var idCounter = 0;
      9 
     10 function transactionCallback(tx) {
     11   tx.executeSql('UPDATE Test SET Foo = ? WHERE ID = ?',
     12                 [randomString, idCounter++],
     13                 function(tx, data) {}, function(tx, error) {});
     14 }
     15 </script>
     16 
     17 <body>
     18 <script>
     19   runPerformanceTest({
     20     dbName: "UpdateTransactions",
     21     readOnly: false,
     22     insertRowsAtSetup: true,
     23     transactionCallback: transactionCallback,
     24     customRunTransactions: null
     25   });
     26 </script>
     27 </body>
     28 </html>
     29