1 Verify that a transaction with an error aborts unless preventDefault() is called.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 webkitIndexedDB.open('name')
7 PASS 'onsuccess' in result is true
8 PASS 'onerror' in result is true
9 PASS 'readyState' in result is true
10 An event should fire shortly...
13 PASS 'result' in event is true
14 PASS 'code' in event is false
15 PASS 'message' in event is false
16 PASS 'source' in event is true
17 PASS event.source != null is true
18 PASS 'onsuccess' in event.target is true
19 PASS 'onerror' in event.target is true
20 PASS 'readyState' in event.target is true
21 PASS event.target.readyState is event.target.DONE
24 db.setVersion('new version')
25 PASS 'onsuccess' in result is true
26 PASS 'onerror' in result is true
27 PASS 'readyState' in result is true
28 An event should fire shortly...
32 PASS 'result' in event is true
33 PASS 'code' in event is false
34 PASS 'message' in event is false
35 PASS 'source' in event is true
36 PASS event.source != null is true
37 PASS 'onsuccess' in event.target is true
38 PASS 'onerror' in event.target is true
39 PASS 'readyState' in event.target is true
40 PASS event.target.readyState is event.target.DONE
43 PASS trans !== null is true
44 trans.oncomplete = addData
45 Deleted all object stores.
46 db.createObjectStore('storeName', null)
47 trans = db.transaction([], webkitIDBTransaction.READ_WRITE)
48 trans.onabort = unexpectedAbortCallback
49 trans.oncomplete = transactionCompleted
50 store = trans.objectStore('storeName')
51 store.add({x: 'value', y: 'zzz'}, 'key')
52 PASS 'onsuccess' in result is true
53 PASS 'onerror' in result is true
54 PASS 'readyState' in result is true
55 An event should fire shortly...
58 PASS 'result' in event is true
59 PASS 'code' in event is false
60 PASS 'message' in event is false
61 PASS 'source' in event is true
62 PASS event.source != null is true
63 PASS 'onsuccess' in event.target is true
64 PASS 'onerror' in event.target is true
65 PASS 'readyState' in event.target is true
66 PASS event.target.readyState is event.target.DONE
68 event.source.add({x: 'value', y: 'zzz'}, 'key')
69 PASS 'onsuccess' in result is true
70 PASS 'onerror' in result is true
71 PASS 'readyState' in result is true
72 An event should fire shortly...
74 event.preventDefault()
75 PASS Transaction completed
78 trans = db.transaction([], webkitIDBTransaction.READ_WRITE)
79 trans.onabort = transactionAborted1
80 trans.oncomplete = unexpectedCompleteCallback
81 store = trans.objectStore('storeName')
82 store.add({x: 'value', y: 'zzz'}, 'key')
83 PASS 'onsuccess' in result is true
84 PASS 'onerror' in result is true
85 PASS 'readyState' in result is true
86 An event should fire shortly...
88 Doing nothing to prevent the default action...
89 PASS Transaction aborted
92 trans = db.transaction([], webkitIDBTransaction.READ_WRITE)
93 trans.onabort = transactionAborted2
94 trans.oncomplete = unexpectedCompleteCallback
95 store = trans.objectStore('storeName')
96 store.add({x: 'value', y: 'zzz'}, 'key')
97 PASS 'onsuccess' in result is true
98 PASS 'onerror' in result is true
99 PASS 'readyState' in result is true
100 An event should fire shortly...
102 Omitting an onerror handler
103 PASS Transaction aborted
104 PASS successfullyParsed is true