summaryrefslogtreecommitdiffstats
path: root/tools/page_cycler/database/select-transactions/index.html
diff options
context:
space:
mode:
authordumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-29 23:27:37 +0000
committerdumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-29 23:27:37 +0000
commit81545760b52a29fbcc7a594b5b81fd1d7cdcf8ec (patch)
tree3b750fc0c9508b4eff5b9729e7e0613bb4328cb1 /tools/page_cycler/database/select-transactions/index.html
parent35f2094cd0ac27018aff2646445f44c3f9ee8d36 (diff)
downloadchromium_src-81545760b52a29fbcc7a594b5b81fd1d7cdcf8ec.zip
chromium_src-81545760b52a29fbcc7a594b5b81fd1d7cdcf8ec.tar.gz
chromium_src-81545760b52a29fbcc7a594b5b81fd1d7cdcf8ec.tar.bz2
Adding the DB performance tests.
BUG=none TEST=none Review URL: http://codereview.chromium.org/465141 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35355 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/page_cycler/database/select-transactions/index.html')
-rw-r--r--tools/page_cycler/database/select-transactions/index.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/page_cycler/database/select-transactions/index.html b/tools/page_cycler/database/select-transactions/index.html
new file mode 100644
index 0000000..bfd0b39
--- /dev/null
+++ b/tools/page_cycler/database/select-transactions/index.html
@@ -0,0 +1,25 @@
+<!DOCTYPE HTML>
+<html>
+<title>Select transactions</title>
+<script src="../head.js"></script>
+<script src="../common.js"></script>
+<script>
+var idCounter = 0;
+
+function transactionCallback(tx) {
+ tx.executeSql('SELECT * FROM Test WHERE ID = ?', [idCounter++],
+ function(tx, data) {}, function(tx, error) {});
+}
+</script>
+
+<body>
+<script>
+ runPerformanceTest({
+ dbName: "SelectTransactions",
+ readOnly: false,
+ insertRowsAtSetup: true,
+ transactionCallback: transactionCallback,
+ customRunTransactions: null
+ });</script>
+</body>
+</html>