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

Unified Diff: LayoutTests/fast/workers/storage/resources/open-database-creation-callback-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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/workers/storage/resources/open-database-creation-callback-sync.js
diff --git a/LayoutTests/fast/workers/storage/resources/open-database-creation-callback-sync.js b/LayoutTests/fast/workers/storage/resources/open-database-creation-callback-sync.js
deleted file mode 100644
index 70ad67682471377690ab4f23e8654801e73d47f9..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/workers/storage/resources/open-database-creation-callback-sync.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var creationCallbackCalled1 = false;
-var db1Name = "OpenDatabaseCreationCallback1" + (new Date()).getTime();
-var db2Name = "OpenDatabaseCreationCallback2" + (new Date()).getTime();
-var db1 = openDatabaseSync(db1Name, "1.0", "", 1,
- function(db) {
- postMessage("PASS: Creation callback was called.");
- if (db.version != "")
- postMessage("FAIL: Wrong version " + db.version + "; empty string expected.");
- else
- postMessage("PASS: Version set to empty string as expected.");
- });
-
-var db1Fail = null;
-try {
- db1Fail = openDatabaseSync(db1Name, "1.0", "", 1);
- postMessage("FAIL: An INVALID_STATE_ERR exception should've been thrown.");
-} catch(err) {
- if (db1Fail)
- postMessage("FAIL: db1Fail should have been null.");
- else
- postMessage("PASS: An exception was thrown and db1Fail is null as expected.");
-}
-
-// Open a handle to another database, first without a creation callback, then with one.
-// Make sure the creation callback is not called.
-var db2 = openDatabaseSync(db2Name, "1.0", "", 1);
-db2 = openDatabaseSync(db2Name, "1.0", "", 1, function(db) { postMessage("FAIL: Creation callback should not have been called."); });
-
-postMessage("done");

Powered by Google App Engine
This is Rietveld 408576698