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

Unified Diff: chrome/test/data/indexeddb/transaction_run_forever.js

Issue 6209005: Fix IndexedDB race condition during shutdown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing Jeremy's comments Created 9 years, 11 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
« no previous file with comments | « chrome/test/data/indexeddb/object_store_test.js ('k') | chrome/test/data/indexeddb/transaction_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/indexeddb/transaction_run_forever.js
diff --git a/chrome/test/data/indexeddb/transaction_run_forever.js b/chrome/test/data/indexeddb/transaction_run_forever.js
index 417323fcea60565e846f33f7602ce94e3a7c669e..311210f6d558dda9ce4876e8e78fa899ccc6d4da 100644
--- a/chrome/test/data/indexeddb/transaction_run_forever.js
+++ b/chrome/test/data/indexeddb/transaction_run_forever.js
@@ -22,7 +22,7 @@ function newTransactionComplete()
{
debug('The transaction completed.');
- var finalTransaction = db.transaction([], IDBTransaction.READ_ONLY, 0);
+ var finalTransaction = db.transaction({objectStoreNames: [], mode: IDBTransaction.READ_ONLY});
finalTransaction.oncomplete = unexpectedCompleteCallback;
finalTransaction.onabort = unexpectedErrorCallback;
@@ -34,7 +34,7 @@ function newTransactionComplete()
function onSetVersionComplete()
{
debug('Creating new transaction.');
- var newTransaction = db.transaction([], IDBTransaction.READ_WRITE, 0);
+ var newTransaction = db.transaction({objectStoreNames: [], mode: IDBTransaction.READ_WRITE});
newTransaction.oncomplete = newTransactionComplete;
newTransaction.onabort = unexpectedAbortCallback;
« no previous file with comments | « chrome/test/data/indexeddb/object_store_test.js ('k') | chrome/test/data/indexeddb/transaction_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698