diff options
Diffstat (limited to 'tools/page_cycler/database/update-transactions/index.html')
-rw-r--r-- | tools/page_cycler/database/update-transactions/index.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/page_cycler/database/update-transactions/index.html b/tools/page_cycler/database/update-transactions/index.html new file mode 100644 index 0000000..75d3c57 --- /dev/null +++ b/tools/page_cycler/database/update-transactions/index.html @@ -0,0 +1,28 @@ +<!DOCTYPE HTML> +<html> +<title>Update transactions</title> +<script src="../head.js"></script> +<script src="../common.js"></script> +<script> +var randomString = getRandomString(); +var idCounter = 0; + +function transactionCallback(tx) { + tx.executeSql('UPDATE Test SET Foo = ? WHERE ID = ?', + [randomString, idCounter++], + function(tx, data) {}, function(tx, error) {}); +} +</script> + +<body> +<script> + runPerformanceTest({ + dbName: "UpdateTransactions", + readOnly: false, + insertRowsAtSetup: true, + transactionCallback: transactionCallback, + customRunTransactions: null + }); +</script> +</body> +</html> |