Add a storage limit for IndexedDB
[WebKit-https.git] / LayoutTests / storage / indexeddb / prefetch-invalidation-private-expected.txt
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 indexedDB.deleteDatabase(dbname)
9 indexedDB.open(dbname)
10
11 prepareDatabase():
12 db = event.target.result
13 store = db.createObjectStore('store')
14
15 onOpenSuccess():
16 db = event.target.result
17
18 -------------------------------------------
19
20 doPrefetchInvalidationTest():
21 store = db.transaction('store', 'readwrite').objectStore('store')
22 Populate the store with 100 records.
23 cursorRequest = store.openCursor()
24
25 continue50Times():
26 PASS cursorRequest.result is non-null.
27
28 doOperationAndContinue():
29 store.delete(IDBKeyRange.bound(-Infinity, +Infinity))
30 cursor = cursorRequest.result
31 cursor.continue()
32
33 onContinueSuccess():
34 PASS cursorRequest.result is null
35
36 -------------------------------------------
37
38 doPrefetchInvalidationTest():
39 store = db.transaction('store', 'readwrite').objectStore('store')
40 Populate the store with 100 records.
41 cursorRequest = store.openCursor()
42
43 continue50Times():
44 PASS cursorRequest.result is non-null.
45
46 doOperationAndContinue():
47 store.clear()
48 cursor = cursorRequest.result
49 cursor.continue()
50
51 onContinueSuccess():
52 PASS cursorRequest.result is null
53 PASS successfullyParsed is true
54
55 TEST COMPLETE
56