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

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

Issue 105213009: IndexedDB: Tests for cursor prefetch edge cases (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « LayoutTests/storage/indexeddb/prefetch-race.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/prefetch-race-expected.txt
diff --git a/LayoutTests/storage/indexeddb/prefetch-race-expected.txt b/LayoutTests/storage/indexeddb/prefetch-race-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..7ccfa12577db0cebdf66a6efd9d6472fd2360163
--- /dev/null
+++ b/LayoutTests/storage/indexeddb/prefetch-race-expected.txt
@@ -0,0 +1,58 @@
+Ensure IndexedDB's cursor prefetch cache requests are invalidated
+
+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 = "prefetch-race.html"
+indexedDB.deleteDatabase(dbname)
+indexedDB.open(dbname)
+
+prepareDatabase():
+db = event.target.result
+store = db.createObjectStore('store')
+Populate with even records...
+
+onOpenSuccess():
+db = event.target.result
+tx = db.transaction('store', 'readwrite')
+store = tx.objectStore('store')
+request = store.openCursor()
+
+cursorSuccess():
+PASS cursor.key is 0
+cursor.continue()
+
+cursorSuccess():
+PASS cursor.key is 2
+cursor.continue()
+
+cursorSuccess():
+PASS cursor.key is 4
+cursor.continue()
+
+That should have triggered a prefetch, injecting odd records...
+
+cursorSuccess():
+PASS cursor.key is 6
+cursor.continue()
+
+cursorSuccess():
+PASS cursor.key is 7
+cursor.continue()
+
+cursorSuccess():
+PASS cursor.key is 8
+cursor.continue()
+
+cursorSuccess():
+PASS cursor.key is 9
+cursor.continue()
+
+cursorSuccess():
+PASS continueCount is 7
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/storage/indexeddb/prefetch-race.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698