IndexedDB: don't expose IDBDatabaseError to script
[WebKit-https.git] / LayoutTests / storage / indexeddb / deleteIndex-expected.txt
1 Test IndexedDB deleteIndex method
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('deleteIndex')
9 db = event.target.result
10 request = db.setVersion('1')
11 transaction = event.target.result;
12 Deleted all object stores.
13 objectStore = db.createObjectStore('foo');
14 Expecting exception from objectStore.deleteIndex('first')
15 PASS Exception was thrown.
16 PASS code is IDBDatabaseException.NOT_FOUND_ERR
17 PASS objectStore.deleteIndex() threw exception TypeError: Not enough arguments.
18 index = objectStore.createIndex('first', 'first');
19 Expecting exception from objectStore.deleteIndex('FIRST')
20 PASS Exception was thrown.
21 PASS code is IDBDatabaseException.NOT_FOUND_ERR
22 index = objectStore.createIndex('second', 'second');
23 returnValue = objectStore.deleteIndex('first');
24 PASS returnValue is undefined
25 Expecting exception from db.createObjectStore('bar');
26 PASS Exception was thrown.
27 PASS code is IDBDatabaseException.NOT_ALLOWED_ERR
28 Expecting exception from objectStore.deleteIndex('second')
29 PASS Exception was thrown.
30 PASS code is IDBDatabaseException.TRANSACTION_INACTIVE_ERR
31 PASS successfullyParsed is true
32
33 TEST COMPLETE
34