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

Side by Side Diff: LayoutTests/fast/workers/storage/resources/multiple-transactions-sync.js

Issue 561093003: Remove worker support of Web SQL Database. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 var complete = 0;
2
3 function checkCompletion()
4 {
5 if (++complete == 2 && window.testRunner)
6 testRunner.notifyDone();
7 }
8
9 function runTest()
10 {
11 var db = openDatabaseWithSuffix("MultipleTransactionsTest", "1.0", "Test to make sure multiple transactions can be queued at once for an HTML5 database", 32 768);
12
13 db.transaction(function(tx) {
14 log("Transaction 1 Started");
15 }, function(err) {
16 log("Transaction 1 Errored - " + err);
17 checkCompletion();
18 }, function() {
19 log("Transaction 1 Succeeded");
20 checkCompletion();
21 });
22
23 db.transaction(function(tx) {
24 log("Transaction 2 Started");
25 }, function(err) {
26 log("Transaction 2 Errored - " + err);
27 checkCompletion();
28 }, function() {
29 log("Transaction 2 Succeeded");
30 checkCompletion();
31 });
32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698