1 Test IndexedDB's basics.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 indexedDB.open('basics')
7 PASS 'result' in request is true
8 Expecting exception from request.result
9 PASS Exception was thrown.
10 PASS code is DOMException.INVALID_STATE_ERR
11 PASS ename is 'InvalidStateError'
12 Exception message: Failed to read the 'result' property from 'IDBRequest': The request has not finished.
13 PASS 'error' in request is true
14 Expecting exception from request.error
15 PASS Exception was thrown.
16 PASS code is DOMException.INVALID_STATE_ERR
17 PASS ename is 'InvalidStateError'
18 Exception message: Failed to read the 'error' property from 'IDBRequest': The request has not finished.
19 PASS 'source' in request is true
20 PASS request.source is null
21 PASS 'transaction' in request is true
22 PASS request.transaction is null
23 PASS 'readyState' in request is true
24 PASS request.readyState is "pending"
25 PASS 'onsuccess' in request is true
26 PASS request.onsuccess is null
27 PASS 'onerror' in request is true
28 PASS request.onerror is null
29 PASS 'result' in event.target is true
30 PASS !!event.target.result is true
31 PASS 'error' in event.target is true
32 PASS event.target.error is null
33 PASS 'source' in event.target is true
34 PASS request.source is null
35 PASS 'transaction' in event.target is true
36 PASS event.target.transaction is null
37 PASS 'readyState' in request is true
38 PASS event.target.readyState is "done"
39 PASS 'onsuccess' in event.target is true
40 PASS 'onerror' in event.target is true
41 PASS successfullyParsed is true