Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Side by Side Diff: tools/page_cycler/database/select-readtransactions-read-results/index.html

Issue 148093016: [Telemetry] Clean up some page cycler cruft now that idb has moved out. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove database page cycler too Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <title>Select read-transactions (store results in JS variables)</title>
4 <script src="../head.js"></script>
5 <script src="../common.js"></script>
6 <script>
7 var idCounter = 0;
8 var resultId = 0;
9 var resultString = '';
10
11 function transactionCallback(tx) {
12 tx.executeSql('SELECT * FROM Test WHERE ID = ?', [idCounter++],
13 function(tx, data) {
14 for (var i = 0; i < data.rows.length; i++) {
15 resultId = data.rows.item(i).ID;
16 resultString = data.rows.item(i).Foo;
17 }
18 }, function(tx, error) {});
19 }
20 </script>
21
22 <body>
23 <script>
24 runPerformanceTest({
25 dbName: "SelectReadTransactionsReadResults",
26 readOnly: true,
27 insertRowsAtSetup: true,
28 transactionCallback: transactionCallback,
29 customRunTransactions: null
30 });
31 </script>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698