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

Unified Diff: LayoutTests/storage/indexeddb/transaction-coordination-ro-waits-for-rw-expected.txt

Issue 745553002: IDB: Layout test showing ro transactions wait for rw transactions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove hyphen from -expected.txt Created 6 years, 1 month 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/transaction-coordination-ro-waits-for-rw.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/storage/indexeddb/transaction-coordination-ro-waits-for-rw-expected.txt
diff --git a/LayoutTests/storage/indexeddb/transaction-coordination-ro-waits-for-rw-expected.txt b/LayoutTests/storage/indexeddb/transaction-coordination-ro-waits-for-rw-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..ca2b9af10ce634a4b13d3c4557b6c8e9241869e6
--- /dev/null
+++ b/LayoutTests/storage/indexeddb/transaction-coordination-ro-waits-for-rw-expected.txt
@@ -0,0 +1,29 @@
+readonly transaction should see the result of a previous readwrite transaction
+
+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 = "transaction-coordination-ro-waits-for-rw.html"
+indexedDB.deleteDatabase(dbname)
+indexedDB.open(dbname)
+
+prepareDatabase():
+db = event.target.result
+store = db.createObjectStore('store')
+store.put('original value', 'key')
+
+runTransactions():
+db = event.target.result
+transaction1 = db.transaction('store', 'readwrite')
+transaction2 = db.transaction('store', 'readonly')
+request = transaction1.objectStore('store').put('new value', 'key')
+request2 = transaction2.objectStore('store').get('key')
+
+checkResult():
+PASS request2.result is "new value"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/storage/indexeddb/transaction-coordination-ro-waits-for-rw.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698