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

Side by Side Diff: LayoutTests/storage/indexeddb/prefetch-invalidation-expected.txt

Issue 101503003: Test for prefetch cache resetting on IDBObjectStore.clear() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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's write operations invalidate cursor prefetch caches
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 = "prefetch-invalidation.html"
9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname)
11
12 prepareDatabase():
13 db = event.target.result
14 store = db.createObjectStore('store')
15
16 onOpenSuccess():
17 db = event.target.result
18
19 -------------------------------------------
20
21 doPrefetchInvalidationTest():
22 store = db.transaction('store', 'readwrite').objectStore('store')
23 Populate the store with 200 records.
24 cursorRequest = store.openCursor()
25
26 continue100Times():
27 PASS cursorRequest.result is non-null.
28
29 doOperationAndContinue():
30 store.delete(IDBKeyRange.bound(-Infinity, +Infinity))
31 cursor = cursorRequest.result
32 cursor.continue()
33
34 onContinueSuccess():
35 PASS cursorRequest.result is null
36
37 -------------------------------------------
38
39 doPrefetchInvalidationTest():
40 store = db.transaction('store', 'readwrite').objectStore('store')
41 Populate the store with 200 records.
42 cursorRequest = store.openCursor()
43
44 continue100Times():
45 PASS cursorRequest.result is non-null.
46
47 doOperationAndContinue():
48 store.clear()
49 cursor = cursorRequest.result
50 cursor.continue()
51
52 onContinueSuccess():
53 PASS cursorRequest.result is null
54 PASS successfullyParsed is true
55
56 TEST COMPLETE
57
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698