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; | |
7 | |
8 dbname = "object-lookups-in-versionchange.html" | 6 dbname = "object-lookups-in-versionchange.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
11 db = event.target.result | 9 db = event.target.result |
12 transaction = event.target.transaction | 10 transaction = event.target.transaction |
13 store = db.createObjectStore('store') | 11 store = db.createObjectStore('store') |
14 | 12 |
15 Expecting exception from transaction.objectStore('no-such-store') | 13 Expecting exception from transaction.objectStore('no-such-store') |
16 PASS Exception was thrown. | 14 PASS Exception was thrown. |
17 PASS code is DOMException.NOT_FOUND_ERR | 15 PASS code is DOMException.NOT_FOUND_ERR |
18 PASS ename is 'NotFoundError' | 16 PASS ename is 'NotFoundError' |
19 Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The spec
ified object store was not found. | 17 Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The spec
ified object store was not found. |
20 | 18 |
21 Expecting exception from store.index('no-such-index') | 19 Expecting exception from store.index('no-such-index') |
22 PASS Exception was thrown. | 20 PASS Exception was thrown. |
23 PASS code is DOMException.NOT_FOUND_ERR | 21 PASS code is DOMException.NOT_FOUND_ERR |
24 PASS ename is 'NotFoundError' | 22 PASS ename is 'NotFoundError' |
25 Exception message: Failed to execute 'index' on 'IDBObjectStore': The specified
index was not found. | 23 Exception message: Failed to execute 'index' on 'IDBObjectStore': The specified
index was not found. |
26 PASS successfullyParsed is true | 24 PASS successfullyParsed is true |
27 | 25 |
28 TEST COMPLETE | 26 TEST COMPLETE |
29 | 27 |
OLD | NEW |