Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: LayoutTests/storage/indexeddb/transaction-active-flag-expected.txt

Issue 19107003: IndexedDB: Log exception messages (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Test IndexedDB transaction internal active flag. 1 Test IndexedDB transaction internal active flag.
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 = "transaction-active-flag.html" 8 dbname = "transaction-active-flag.html"
9 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 10 indexedDB.open(dbname)
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 Transaction shouldn't be active inside a non-IDB-event callback 53 Transaction shouldn't be active inside a non-IDB-event callback
54 setTimeout(testTimeout, 0) 54 setTimeout(testTimeout, 0)
55 55
56 testTimeout(): 56 testTimeout():
57 store = transaction.objectStore('store') 57 store = transaction.objectStore('store')
58 index = store.index('index') 58 index = store.index('index')
59 Expecting exception from store.add(0, 0) 59 Expecting exception from store.add(0, 0)
60 PASS Exception was thrown. 60 PASS Exception was thrown.
61 PASS code is 0 61 PASS code is 0
62 PASS ename is 'TransactionInactiveError' 62 PASS ename is 'TransactionInactiveError'
63 Exception message: The transaction is not active.
63 Expecting exception from store.put(0, 0) 64 Expecting exception from store.put(0, 0)
64 PASS Exception was thrown. 65 PASS Exception was thrown.
65 PASS code is 0 66 PASS code is 0
66 PASS ename is 'TransactionInactiveError' 67 PASS ename is 'TransactionInactiveError'
68 Exception message: The transaction is not active.
67 Expecting exception from store.get(0) 69 Expecting exception from store.get(0)
68 PASS Exception was thrown. 70 PASS Exception was thrown.
69 PASS code is 0 71 PASS code is 0
70 PASS ename is 'TransactionInactiveError' 72 PASS ename is 'TransactionInactiveError'
73 Exception message: The transaction is not active.
71 Expecting exception from store.get(IDBKeyRange.only(0)) 74 Expecting exception from store.get(IDBKeyRange.only(0))
72 PASS Exception was thrown. 75 PASS Exception was thrown.
73 PASS code is 0 76 PASS code is 0
74 PASS ename is 'TransactionInactiveError' 77 PASS ename is 'TransactionInactiveError'
78 Exception message: The transaction is not active.
75 Expecting exception from store.delete(0) 79 Expecting exception from store.delete(0)
76 PASS Exception was thrown. 80 PASS Exception was thrown.
77 PASS code is 0 81 PASS code is 0
78 PASS ename is 'TransactionInactiveError' 82 PASS ename is 'TransactionInactiveError'
83 Exception message: The transaction is not active.
79 Expecting exception from store.delete(IDBKeyRange.only(0)) 84 Expecting exception from store.delete(IDBKeyRange.only(0))
80 PASS Exception was thrown. 85 PASS Exception was thrown.
81 PASS code is 0 86 PASS code is 0
82 PASS ename is 'TransactionInactiveError' 87 PASS ename is 'TransactionInactiveError'
88 Exception message: The transaction is not active.
83 Expecting exception from store.count() 89 Expecting exception from store.count()
84 PASS Exception was thrown. 90 PASS Exception was thrown.
85 PASS code is 0 91 PASS code is 0
86 PASS ename is 'TransactionInactiveError' 92 PASS ename is 'TransactionInactiveError'
93 Exception message: The transaction is not active.
87 Expecting exception from store.count(0) 94 Expecting exception from store.count(0)
88 PASS Exception was thrown. 95 PASS Exception was thrown.
89 PASS code is 0 96 PASS code is 0
90 PASS ename is 'TransactionInactiveError' 97 PASS ename is 'TransactionInactiveError'
98 Exception message: The transaction is not active.
91 Expecting exception from store.count(IDBKeyRange.only(0)) 99 Expecting exception from store.count(IDBKeyRange.only(0))
92 PASS Exception was thrown. 100 PASS Exception was thrown.
93 PASS code is 0 101 PASS code is 0
94 PASS ename is 'TransactionInactiveError' 102 PASS ename is 'TransactionInactiveError'
103 Exception message: The transaction is not active.
95 Expecting exception from store.clear() 104 Expecting exception from store.clear()
96 PASS Exception was thrown. 105 PASS Exception was thrown.
97 PASS code is 0 106 PASS code is 0
98 PASS ename is 'TransactionInactiveError' 107 PASS ename is 'TransactionInactiveError'
108 Exception message: The transaction is not active.
99 Expecting exception from store.openCursor() 109 Expecting exception from store.openCursor()
100 PASS Exception was thrown. 110 PASS Exception was thrown.
101 PASS code is 0 111 PASS code is 0
102 PASS ename is 'TransactionInactiveError' 112 PASS ename is 'TransactionInactiveError'
113 Exception message: The transaction is not active.
103 Expecting exception from store.openCursor(0) 114 Expecting exception from store.openCursor(0)
104 PASS Exception was thrown. 115 PASS Exception was thrown.
105 PASS code is 0 116 PASS code is 0
106 PASS ename is 'TransactionInactiveError' 117 PASS ename is 'TransactionInactiveError'
118 Exception message: The transaction is not active.
107 Expecting exception from store.openCursor(0, 'next') 119 Expecting exception from store.openCursor(0, 'next')
108 PASS Exception was thrown. 120 PASS Exception was thrown.
109 PASS code is 0 121 PASS code is 0
110 PASS ename is 'TransactionInactiveError' 122 PASS ename is 'TransactionInactiveError'
123 Exception message: The transaction is not active.
111 Expecting exception from store.openCursor(IDBKeyRange.only(0)) 124 Expecting exception from store.openCursor(IDBKeyRange.only(0))
112 PASS Exception was thrown. 125 PASS Exception was thrown.
113 PASS code is 0 126 PASS code is 0
114 PASS ename is 'TransactionInactiveError' 127 PASS ename is 'TransactionInactiveError'
128 Exception message: The transaction is not active.
115 Expecting exception from store.openCursor(IDBKeyRange.only(0), 'next') 129 Expecting exception from store.openCursor(IDBKeyRange.only(0), 'next')
116 PASS Exception was thrown. 130 PASS Exception was thrown.
117 PASS code is 0 131 PASS code is 0
118 PASS ename is 'TransactionInactiveError' 132 PASS ename is 'TransactionInactiveError'
133 Exception message: The transaction is not active.
119 Expecting exception from index.get(0) 134 Expecting exception from index.get(0)
120 PASS Exception was thrown. 135 PASS Exception was thrown.
121 PASS code is 0 136 PASS code is 0
122 PASS ename is 'TransactionInactiveError' 137 PASS ename is 'TransactionInactiveError'
138 Exception message: The transaction is not active.
123 Expecting exception from index.get(IDBKeyRange.only(0)) 139 Expecting exception from index.get(IDBKeyRange.only(0))
124 PASS Exception was thrown. 140 PASS Exception was thrown.
125 PASS code is 0 141 PASS code is 0
126 PASS ename is 'TransactionInactiveError' 142 PASS ename is 'TransactionInactiveError'
143 Exception message: The transaction is not active.
127 Expecting exception from index.getKey(0) 144 Expecting exception from index.getKey(0)
128 PASS Exception was thrown. 145 PASS Exception was thrown.
129 PASS code is 0 146 PASS code is 0
130 PASS ename is 'TransactionInactiveError' 147 PASS ename is 'TransactionInactiveError'
148 Exception message: The transaction is not active.
131 Expecting exception from index.getKey(IDBKeyRange.only(0)) 149 Expecting exception from index.getKey(IDBKeyRange.only(0))
132 PASS Exception was thrown. 150 PASS Exception was thrown.
133 PASS code is 0 151 PASS code is 0
134 PASS ename is 'TransactionInactiveError' 152 PASS ename is 'TransactionInactiveError'
153 Exception message: The transaction is not active.
135 Expecting exception from index.count() 154 Expecting exception from index.count()
136 PASS Exception was thrown. 155 PASS Exception was thrown.
137 PASS code is 0 156 PASS code is 0
138 PASS ename is 'TransactionInactiveError' 157 PASS ename is 'TransactionInactiveError'
158 Exception message: The transaction is not active.
139 Expecting exception from index.count(0) 159 Expecting exception from index.count(0)
140 PASS Exception was thrown. 160 PASS Exception was thrown.
141 PASS code is 0 161 PASS code is 0
142 PASS ename is 'TransactionInactiveError' 162 PASS ename is 'TransactionInactiveError'
163 Exception message: The transaction is not active.
143 Expecting exception from index.count(IDBKeyRange.only(0)) 164 Expecting exception from index.count(IDBKeyRange.only(0))
144 PASS Exception was thrown. 165 PASS Exception was thrown.
145 PASS code is 0 166 PASS code is 0
146 PASS ename is 'TransactionInactiveError' 167 PASS ename is 'TransactionInactiveError'
168 Exception message: The transaction is not active.
147 Expecting exception from index.openCursor() 169 Expecting exception from index.openCursor()
148 PASS Exception was thrown. 170 PASS Exception was thrown.
149 PASS code is 0 171 PASS code is 0
150 PASS ename is 'TransactionInactiveError' 172 PASS ename is 'TransactionInactiveError'
173 Exception message: The transaction is not active.
151 Expecting exception from index.openCursor(0) 174 Expecting exception from index.openCursor(0)
152 PASS Exception was thrown. 175 PASS Exception was thrown.
153 PASS code is 0 176 PASS code is 0
154 PASS ename is 'TransactionInactiveError' 177 PASS ename is 'TransactionInactiveError'
178 Exception message: The transaction is not active.
155 Expecting exception from index.openCursor(0, 'next') 179 Expecting exception from index.openCursor(0, 'next')
156 PASS Exception was thrown. 180 PASS Exception was thrown.
157 PASS code is 0 181 PASS code is 0
158 PASS ename is 'TransactionInactiveError' 182 PASS ename is 'TransactionInactiveError'
183 Exception message: The transaction is not active.
159 Expecting exception from index.openCursor(IDBKeyRange.only(0)) 184 Expecting exception from index.openCursor(IDBKeyRange.only(0))
160 PASS Exception was thrown. 185 PASS Exception was thrown.
161 PASS code is 0 186 PASS code is 0
162 PASS ename is 'TransactionInactiveError' 187 PASS ename is 'TransactionInactiveError'
188 Exception message: The transaction is not active.
163 Expecting exception from index.openCursor(IDBKeyRange.only(0), 'next') 189 Expecting exception from index.openCursor(IDBKeyRange.only(0), 'next')
164 PASS Exception was thrown. 190 PASS Exception was thrown.
165 PASS code is 0 191 PASS code is 0
166 PASS ename is 'TransactionInactiveError' 192 PASS ename is 'TransactionInactiveError'
193 Exception message: The transaction is not active.
167 Expecting exception from index.openKeyCursor() 194 Expecting exception from index.openKeyCursor()
168 PASS Exception was thrown. 195 PASS Exception was thrown.
169 PASS code is 0 196 PASS code is 0
170 PASS ename is 'TransactionInactiveError' 197 PASS ename is 'TransactionInactiveError'
198 Exception message: The transaction is not active.
171 Expecting exception from index.openKeyCursor(0) 199 Expecting exception from index.openKeyCursor(0)
172 PASS Exception was thrown. 200 PASS Exception was thrown.
173 PASS code is 0 201 PASS code is 0
174 PASS ename is 'TransactionInactiveError' 202 PASS ename is 'TransactionInactiveError'
203 Exception message: The transaction is not active.
175 Expecting exception from index.openKeyCursor(0, 'next') 204 Expecting exception from index.openKeyCursor(0, 'next')
176 PASS Exception was thrown. 205 PASS Exception was thrown.
177 PASS code is 0 206 PASS code is 0
178 PASS ename is 'TransactionInactiveError' 207 PASS ename is 'TransactionInactiveError'
208 Exception message: The transaction is not active.
179 Expecting exception from index.openKeyCursor(IDBKeyRange.only(0)) 209 Expecting exception from index.openKeyCursor(IDBKeyRange.only(0))
180 PASS Exception was thrown. 210 PASS Exception was thrown.
181 PASS code is 0 211 PASS code is 0
182 PASS ename is 'TransactionInactiveError' 212 PASS ename is 'TransactionInactiveError'
213 Exception message: The transaction is not active.
183 Expecting exception from index.openKeyCursor(IDBKeyRange.only(0), 'next') 214 Expecting exception from index.openKeyCursor(IDBKeyRange.only(0), 'next')
184 PASS Exception was thrown. 215 PASS Exception was thrown.
185 PASS code is 0 216 PASS code is 0
186 PASS ename is 'TransactionInactiveError' 217 PASS ename is 'TransactionInactiveError'
218 Exception message: The transaction is not active.
187 219
188 testEventCallback(): 220 testEventCallback():
189 Transaction should be active inside a non-IDB-event callback 221 Transaction should be active inside a non-IDB-event callback
190 store = transaction.objectStore('store') 222 store = transaction.objectStore('store')
191 index = store.index('index') 223 index = store.index('index')
192 PASS store.add(0, 0) did not throw exception. 224 PASS store.add(0, 0) did not throw exception.
193 PASS store.put(0, 0) did not throw exception. 225 PASS store.put(0, 0) did not throw exception.
194 PASS store.get(0) did not throw exception. 226 PASS store.get(0) did not throw exception.
195 PASS store.get(IDBKeyRange.only(0)) did not throw exception. 227 PASS store.get(IDBKeyRange.only(0)) did not throw exception.
196 PASS store.delete(0) did not throw exception. 228 PASS store.delete(0) did not throw exception.
(...skipping 23 matching lines...) Expand all
220 PASS index.openKeyCursor(0) did not throw exception. 252 PASS index.openKeyCursor(0) did not throw exception.
221 PASS index.openKeyCursor(0, 'next') did not throw exception. 253 PASS index.openKeyCursor(0, 'next') did not throw exception.
222 PASS index.openKeyCursor(IDBKeyRange.only(0)) did not throw exception. 254 PASS index.openKeyCursor(IDBKeyRange.only(0)) did not throw exception.
223 PASS index.openKeyCursor(IDBKeyRange.only(0), 'next') did not throw exception. 255 PASS index.openKeyCursor(IDBKeyRange.only(0), 'next') did not throw exception.
224 256
225 transactionComplete(): 257 transactionComplete():
226 Expecting exception from store = transaction.objectStore('store') 258 Expecting exception from store = transaction.objectStore('store')
227 PASS Exception was thrown. 259 PASS Exception was thrown.
228 PASS code is DOMException.INVALID_STATE_ERR 260 PASS code is DOMException.INVALID_STATE_ERR
229 PASS ename is 'InvalidStateError' 261 PASS ename is 'InvalidStateError'
262 Exception message: The transaction has finished.
230 PASS successfullyParsed is true 263 PASS successfullyParsed is true
231 264
232 TEST COMPLETE 265 TEST COMPLETE
233 266
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698