OLD | NEW |
1 Regression test for http://webkit.org/b/102547 | 1 Regression test for http://webkit.org/b/102547 |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; | 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; |
7 | 7 |
8 dbname = "object-lookups-in-versionchange.html" | 8 dbname = "object-lookups-in-versionchange.html" |
9 indexedDB.deleteDatabase(dbname) | 9 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 10 indexedDB.open(dbname) |
11 db = event.target.result | 11 db = event.target.result |
12 transaction = event.target.transaction | 12 transaction = event.target.transaction |
13 store = db.createObjectStore('store') | 13 store = db.createObjectStore('store') |
14 | 14 |
15 Expecting exception from transaction.objectStore('no-such-store') | 15 Expecting exception from transaction.objectStore('no-such-store') |
16 PASS Exception was thrown. | 16 PASS Exception was thrown. |
17 PASS code is DOMException.NOT_FOUND_ERR | 17 PASS code is DOMException.NOT_FOUND_ERR |
18 PASS ename is 'NotFoundError' | 18 PASS ename is 'NotFoundError' |
19 Exception message: The specified object store was not found. | 19 Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The spec
ified object store was not found. |
20 | 20 |
21 Expecting exception from store.index('no-such-index') | 21 Expecting exception from store.index('no-such-index') |
22 PASS Exception was thrown. | 22 PASS Exception was thrown. |
23 PASS code is DOMException.NOT_FOUND_ERR | 23 PASS code is DOMException.NOT_FOUND_ERR |
24 PASS ename is 'NotFoundError' | 24 PASS ename is 'NotFoundError' |
25 Exception message: The specified index was not found. | 25 Exception message: Failed to execute 'index' on 'IDBObjectStore': The specified
index was not found. |
26 PASS successfullyParsed is true | 26 PASS successfullyParsed is true |
27 | 27 |
28 TEST COMPLETE | 28 TEST COMPLETE |
29 | 29 |
OLD | NEW |