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

Unified Diff: LayoutTests/fast/workers/storage/resources/open-database-while-transaction-in-progress-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-while-transaction-in-progress-sync.js
diff --git a/LayoutTests/fast/workers/storage/resources/open-database-while-transaction-in-progress-sync.js b/LayoutTests/fast/workers/storage/resources/open-database-while-transaction-in-progress-sync.js
deleted file mode 100644
index ee4241fe69a9593d623fbca039089ae2d580996b..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/workers/storage/resources/open-database-while-transaction-in-progress-sync.js
+++ /dev/null
@@ -1,28 +0,0 @@
-function openTestDatabase()
-{
- return openDatabaseSync("OpenDatabaseWhileTransactionInProgressTest",
- "1.0",
- "Test to make sure that calling openDatabase() while a transaction is in progress on a different handle to the same database does not result in a deadlock.",
- 2100000); // 2MB + epsilon
-}
-
-// See https://bugs.webkit.org/show_bug.cgi?id=28207
-// In order to trigger this bug, the transaction must acquire an exclusive
-// lock on the DB file before trying to obtain a second handle to the same DB.
-// The only way to force SQLite to obtain an exclusive lock is to change more
-// than cache_size * page_size bytes in the database. The default value for
-// cache_size is 2000 pages, and the default page_size is 1024 bytes. So the
-// size of the blob must be at least 2MB.
-var db1 = openTestDatabase();
-db1.transaction(function(tx) {
- tx.executeSql("CREATE TABLE IF NOT EXISTS Test (Foo BLOB);");
- tx.executeSql("INSERT INTO Test VALUES (ZEROBLOB(2097152));");
- var db2 = openTestDatabase();
- postMessage("PASS: second handle opened successfully.");
-
- // Clean up the DB to allow for repeated runs of this test
- // without needing to increase the default allowed quota (5MB)
- tx.executeSql("DELETE FROM Test;");
-});
-
-postMessage("done");

Powered by Google App Engine
This is Rietveld 408576698