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"); |