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

Side by Side Diff: LayoutTests/fast/workers/storage/resources/interrupt-database.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 counter = 0;
2 function runTransaction()
3 {
4 db.transaction(function(tx) {
5 tx.executeSql("INSERT INTO Test VALUES (1)");
6 tx.executeSql("DELETE FROM Test WHERE Foo = 1");
7 if (++counter == 100)
8 postMessage("terminate");
9 }, null, runTransaction);
10 }
11
12 var db = openDatabase("InterruptDatabaseTest", "1", "", 1);
13 db.transaction(function(tx) {
14 tx.executeSql("CREATE TABLE IF NOT EXISTS Test (Foo INT)");
15 }, function(error) {
16 postMessage("Error: " + error.message);
17 }, function() {
18 runTransaction();
19 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698