OLD | NEW |
1 Test IndexedDB's basics. | 1 Test IndexedDB's basics. |
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 indexedDB.open('basics') | 6 indexedDB.open('basics') |
9 PASS 'result' in request is true | 7 PASS 'result' in request is true |
10 Expecting exception from request.result | 8 Expecting exception from request.result |
11 PASS Exception was thrown. | 9 PASS Exception was thrown. |
12 PASS code is DOMException.INVALID_STATE_ERR | 10 PASS code is DOMException.INVALID_STATE_ERR |
13 PASS ename is 'InvalidStateError' | 11 PASS ename is 'InvalidStateError' |
14 Exception message: Failed to read the 'result' property from 'IDBRequest': The r
equest has not finished. | 12 Exception message: Failed to read the 'result' property from 'IDBRequest': The r
equest has not finished. |
15 PASS 'error' in request is true | 13 PASS 'error' in request is true |
16 Expecting exception from request.error | 14 Expecting exception from request.error |
17 PASS Exception was thrown. | 15 PASS Exception was thrown. |
(...skipping 19 matching lines...) Expand all Loading... |
37 PASS 'transaction' in event.target is true | 35 PASS 'transaction' in event.target is true |
38 PASS event.target.transaction is null | 36 PASS event.target.transaction is null |
39 PASS 'readyState' in request is true | 37 PASS 'readyState' in request is true |
40 PASS event.target.readyState is "done" | 38 PASS event.target.readyState is "done" |
41 PASS 'onsuccess' in event.target is true | 39 PASS 'onsuccess' in event.target is true |
42 PASS 'onerror' in event.target is true | 40 PASS 'onerror' in event.target is true |
43 PASS successfullyParsed is true | 41 PASS successfullyParsed is true |
44 | 42 |
45 TEST COMPLETE | 43 TEST COMPLETE |
46 | 44 |
OLD | NEW |