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

Side by Side Diff: LayoutTests/fast/workers/storage/resources/change-version-handle-reuse-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 db = null;
2 try {
3 var dbName = "ChangeVersionHandleReuseTest" + (new Date()).getTime();
4 db = openDatabaseSync(dbName, "", "Test that the DB handle is valid after ch anging the version.", 1);
5 var version = db.version;
6 var newVersion = version ? (parseInt(version) + 1).toString() : "1";
7 db.changeVersion(version, newVersion, function(tx) {
8 postMessage("PASS: changeVersion() transaction callback was called.");
9 });
10 } catch (err) {
11 postMessage("FAIL: changeVersion() threw an exception: " + err);
12 }
13
14 try {
15 db.transaction(function(tx) {
16 try {
17 tx.executeSql("CREATE TABLE IF NOT EXISTS Test (Foo INT)");
18 tx.executeSql("SELECT * from Test");
19 postMessage("PASS: No exception thrown while executing statements.") ;
20 } catch (err) {
21 postMessage("FAIL: An exception was thrown while executing statement s: " + err);
22 }
23 });
24 postMessage("PASS: No exception thrown while running a transaction.");
25 } catch (err) {
26 postMessage("FAIL: An exception was thrown while running a transaction: " + err);
27 }
28
29 postMessage("done");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698