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

Unified Diff: LayoutTests/fast/workers/storage/resources/open-database-inputs-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-inputs-sync.js
diff --git a/LayoutTests/fast/workers/storage/resources/open-database-inputs-sync.js b/LayoutTests/fast/workers/storage/resources/open-database-inputs-sync.js
deleted file mode 100644
index 1e0495a164b77c60d1bf97968fff8eb3c8de353d..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/workers/storage/resources/open-database-inputs-sync.js
+++ /dev/null
@@ -1,74 +0,0 @@
-var db;
-
-var notAString = {
- toString: function() { throw "foo"; }
-};
-
-try {
- db = openDatabaseSync();
- postMessage("FAIL: calling openDatabaseSync() without any argument should throw an exception.");
-} catch (err) {
- postMessage("PASS: " + err.message);
-}
-
-try {
- db = openDatabaseSync("DBName", "DBVersion");
- postMessage("FAIL: calling openDatabaseSync() with fewer than four arguments should throw an exception.");
-} catch (err) {
- postMessage("PASS: " + err.message);
-}
-
-try {
- db = openDatabaseSync(notAString, "DBVersion", "DBDescription", 1024);
- postMessage("FAIL: the first argument to openDatabaseSync() must be a string.");
-} catch (err) {
- postMessage("PASS: " + err.message);
-}
-
-try {
- db = openDatabaseSync("DBName", notAString, "DBDescription", 1024);
- postMessage("FAIL: the second argument to openDatabaseSync() must be a string.");
-} catch (err) {
- postMessage("PASS: " + err.message);
-}
-
-try {
- db = openDatabaseSync("DBName", "DBVersion", notAString, 1024);
- postMessage("FAIL: the third argument to openDatabaseSync() must be a string.");
-} catch (err) {
- postMessage("PASS: " + err.message);
-}
-
-try {
- db = openDatabaseSync("DBName", "DBVersion", "DBDescription", 1024, 0);
- postMessage("FAIL: the fifth argument to openDatabaseSync() must be an object, if present.");
-} catch (err) {
- postMessage("PASS: " + err.message);
-}
-
-try {
- db = openDatabaseSync("DBName", "DBVersion", "DBDescription", 1024);
- postMessage("PASS: openDatabaseSync() succeeded.");
-} catch (err) {
- postMessage("FAIL: " + err.message);
-}
-
-// Run this test case one more time, to test the code with an existing database.
-try {
- db = openDatabaseSync("DBName", "DBVersion", "DBDescription", 1024);
- postMessage("PASS: openDatabaseSync() succeeded.");
-} catch (err) {
- postMessage("FAIL: " + err.message);
-}
-
-try {
- // Need to create a new database, otherwise the creation callback won't be invoked.
- db = openDatabaseSync("DBNameCreationCallback" + (new Date()).getTime(), "DBVersion", "DBDescription", 1024,
- function(db) {
- postMessage("PASS: calling openDatabaseSync() with a creation callback succeeded.");
- });
-} catch (err) {
- postMessage("FAIL: " + err.message);
-}
-
-postMessage("done");

Powered by Google App Engine
This is Rietveld 408576698