Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / objectstore-clear-expected.txt
blob275e82ef04db3886c45f45d495c7492e6385bad9
1 Test IndexedDB's IDBObjectStore.clear().
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "objectstore-clear.html"
7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname)
9 store = db.createObjectStore('storeName', null)
10 store.createIndex('indexName', '')
11 PASS store.indexNames.contains('indexName') is true
12 store.add('value', 'key')
13 otherStore = db.createObjectStore('otherStoreName', null)
14 otherStore.add('value', 'key')
15 store.clear()
16 PASS event.target.result is undefined.
17 store.openCursor()
18 PASS event.target.result is null
19 index = store.index('indexName')
20 index.openKeyCursor()
21 openKeyCursorSuccess():
22 PASS event.target.result is null
23 db.transaction(['otherStoreName'])
24 otherStore = transaction.objectStore('otherStoreName')
25 otherStore.get('key')
26 PASS event.target.result is "value"
27 PASS successfullyParsed is true
29 TEST COMPLETE