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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 Ensure IndexedDB transactions created before open onsuccess have correct metadat a
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB;
7
8 dbname = "metadata-race.html"
9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname)
11
12 prepareDatabase():
13 db = event.target.result
14 store = db.createObjectStore('store')
15 store.createIndex('index', 'keyPath')
16 transaction = event.target.transaction
17 PASS index = transaction.objectStore('store').index('index') did not throw excep tion.
18
19 onTransactionComplete():
20 In multiprocess mode, 'complete' event may be dispatched before
21 the 'success' arrives with updated metadata. Ensure the new metadata
22 is still used for transactions.
23 store = db.transaction('store').objectStore('store')
24 PASS index = store.index('index') did not throw exception.
25
26 onOpenSuccess():
27 db = event.target.result
28 store = db.transaction('store').objectStore('store')
29 PASS index = store.index('index') did not throw exception.
30 PASS successfullyParsed is true
31
32 TEST COMPLETE
33
OLDNEW
« 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