Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / prefetch-race-expected.txt
blob0324aa154ae0df7a0c09e0c9681a50f1865966ff
1 Ensure IndexedDB's cursor prefetch cache requests are invalidated
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "prefetch-race.html"
7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname)
10 prepareDatabase():
11 db = event.target.result
12 store = db.createObjectStore('store')
13 Populate with even records...
15 onOpenSuccess():
16 db = event.target.result
17 tx = db.transaction('store', 'readwrite')
18 store = tx.objectStore('store')
19 request = store.openCursor()
21 cursorSuccess():
22 PASS cursor.key is 0
23 cursor.continue()
25 cursorSuccess():
26 PASS cursor.key is 2
27 cursor.continue()
29 cursorSuccess():
30 PASS cursor.key is 4
31 cursor.continue()
33 That should have triggered a prefetch, injecting odd records...
35 cursorSuccess():
36 PASS cursor.key is 6
37 cursor.continue()
39 cursorSuccess():
40 PASS cursor.key is 7
41 cursor.continue()
43 cursorSuccess():
44 PASS cursor.key is 8
45 cursor.continue()
47 cursorSuccess():
48 PASS cursor.key is 9
49 cursor.continue()
51 cursorSuccess():
52 PASS continueCount is 7
53 PASS successfullyParsed is true
55 TEST COMPLETE