IndexedDB: don't expose IDBDatabaseError to script
[WebKit-https.git] / LayoutTests / storage / indexeddb / factory-deletedatabase-expected.txt
1 Test IndexedDB's webkitIndexedDB.deleteDatabase().
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.open('database-to-delete')
9 db = event.target.result
10 db.setVersion('new version')
11 trans = event.target.result
12 PASS trans !== null is true
13 store = db.createObjectStore('storeName', null)
14 store.createIndex('indexName', '')
15 PASS store.indexNames.contains('indexName') is true
16 store.add('value', 'key')
17 db.transaction('storeName', IDBTransaction.READ_WRITE)
18 store = transaction.objectStore('storeName')
19 store.get('key')
20 PASS event.target.result is "value"
21 db.setVersion('new version')
22 request = indexedDB.deleteDatabase('database-to-delete')
23 indexedDB.open('database-to-delete')
24 db = event.target.result
25 db.setVersion('new version')
26 PASS db.objectStoreNames.length is 0
27 PASS successfullyParsed is true
28
29 TEST COMPLETE
30