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

Unified Diff: LayoutTests/storage/indexeddb/metadata-race-expected.txt

Issue 14232020: Ensure IDB transactions started before success arrives see correct medata (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | « LayoutTests/storage/indexeddb/metadata-race.html ('k') | Source/modules/indexeddb/IDBDatabase.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/storage/indexeddb/metadata-race-expected.txt
diff --git a/LayoutTests/storage/indexeddb/metadata-race-expected.txt b/LayoutTests/storage/indexeddb/metadata-race-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d511b6574644d9908d5b2e8eeb4e5e090b17f8a9
--- /dev/null
+++ b/LayoutTests/storage/indexeddb/metadata-race-expected.txt
@@ -0,0 +1,33 @@
+Ensure IndexedDB transactions created before open onsuccess have correct metadata
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
+
+dbname = "metadata-race.html"
+indexedDB.deleteDatabase(dbname)
+indexedDB.open(dbname)
+
+prepareDatabase():
+db = event.target.result
+store = db.createObjectStore('store')
+store.createIndex('index', 'keyPath')
+transaction = event.target.transaction
+PASS index = transaction.objectStore('store').index('index') did not throw exception.
+
+onTransactionComplete():
+In multiprocess mode, 'complete' event may be dispatched before
+the 'success' arrives with updated metadata. Ensure the new metadata
+is still used for transactions.
+store = db.transaction('store').objectStore('store')
+PASS index = store.index('index') did not throw exception.
+
+onOpenSuccess():
+db = event.target.result
+store = db.transaction('store').objectStore('store')
+PASS index = store.index('index') did not throw exception.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/storage/indexeddb/metadata-race.html ('k') | Source/modules/indexeddb/IDBDatabase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698