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

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

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years 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
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 Exception message: Failed to execute 'add' on 'IDBObjectStore': The transaction is not active.
64 Expecting exception from store.put(0, 0) 64 Expecting exception from store.put(0, 0)
65 PASS Exception was thrown. 65 PASS Exception was thrown.
66 PASS code is 0 66 PASS code is 0
67 PASS ename is 'TransactionInactiveError' 67 PASS ename is 'TransactionInactiveError'
68 Exception message: The transaction is not active. 68 Exception message: Failed to execute 'put' on 'IDBObjectStore': The transaction is not active.
69 Expecting exception from store.get(0) 69 Expecting exception from store.get(0)
70 PASS Exception was thrown. 70 PASS Exception was thrown.
71 PASS code is 0 71 PASS code is 0
72 PASS ename is 'TransactionInactiveError' 72 PASS ename is 'TransactionInactiveError'
73 Exception message: The transaction is not active. 73 Exception message: Failed to execute 'get' on 'IDBObjectStore': The transaction is not active.
74 Expecting exception from store.get(IDBKeyRange.only(0)) 74 Expecting exception from store.get(IDBKeyRange.only(0))
75 PASS Exception was thrown. 75 PASS Exception was thrown.
76 PASS code is 0 76 PASS code is 0
77 PASS ename is 'TransactionInactiveError' 77 PASS ename is 'TransactionInactiveError'
78 Exception message: The transaction is not active. 78 Exception message: Failed to execute 'get' on 'IDBObjectStore': The transaction is not active.
79 Expecting exception from store.delete(0) 79 Expecting exception from store.delete(0)
80 PASS Exception was thrown. 80 PASS Exception was thrown.
81 PASS code is 0 81 PASS code is 0
82 PASS ename is 'TransactionInactiveError' 82 PASS ename is 'TransactionInactiveError'
83 Exception message: The transaction is not active. 83 Exception message: Failed to execute 'delete' on 'IDBObjectStore': The transacti on is not active.
84 Expecting exception from store.delete(IDBKeyRange.only(0)) 84 Expecting exception from store.delete(IDBKeyRange.only(0))
85 PASS Exception was thrown. 85 PASS Exception was thrown.
86 PASS code is 0 86 PASS code is 0
87 PASS ename is 'TransactionInactiveError' 87 PASS ename is 'TransactionInactiveError'
88 Exception message: The transaction is not active. 88 Exception message: Failed to execute 'delete' on 'IDBObjectStore': The transacti on is not active.
89 Expecting exception from store.count() 89 Expecting exception from store.count()
90 PASS Exception was thrown. 90 PASS Exception was thrown.
91 PASS code is 0 91 PASS code is 0
92 PASS ename is 'TransactionInactiveError' 92 PASS ename is 'TransactionInactiveError'
93 Exception message: The transaction is not active. 93 Exception message: Failed to execute 'count' on 'IDBObjectStore': The transactio n is not active.
94 Expecting exception from store.count(0) 94 Expecting exception from store.count(0)
95 PASS Exception was thrown. 95 PASS Exception was thrown.
96 PASS code is 0 96 PASS code is 0
97 PASS ename is 'TransactionInactiveError' 97 PASS ename is 'TransactionInactiveError'
98 Exception message: The transaction is not active. 98 Exception message: Failed to execute 'count' on 'IDBObjectStore': The transactio n is not active.
99 Expecting exception from store.count(IDBKeyRange.only(0)) 99 Expecting exception from store.count(IDBKeyRange.only(0))
100 PASS Exception was thrown. 100 PASS Exception was thrown.
101 PASS code is 0 101 PASS code is 0
102 PASS ename is 'TransactionInactiveError' 102 PASS ename is 'TransactionInactiveError'
103 Exception message: The transaction is not active. 103 Exception message: Failed to execute 'count' on 'IDBObjectStore': The transactio n is not active.
104 Expecting exception from store.clear() 104 Expecting exception from store.clear()
105 PASS Exception was thrown. 105 PASS Exception was thrown.
106 PASS code is 0 106 PASS code is 0
107 PASS ename is 'TransactionInactiveError' 107 PASS ename is 'TransactionInactiveError'
108 Exception message: The transaction is not active. 108 Exception message: Failed to execute 'clear' on 'IDBObjectStore': The transactio n is not active.
109 Expecting exception from store.openCursor() 109 Expecting exception from store.openCursor()
110 PASS Exception was thrown. 110 PASS Exception was thrown.
111 PASS code is 0 111 PASS code is 0
112 PASS ename is 'TransactionInactiveError' 112 PASS ename is 'TransactionInactiveError'
113 Exception message: The transaction is not active. 113 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The trans action is not active.
114 Expecting exception from store.openCursor(0) 114 Expecting exception from store.openCursor(0)
115 PASS Exception was thrown. 115 PASS Exception was thrown.
116 PASS code is 0 116 PASS code is 0
117 PASS ename is 'TransactionInactiveError' 117 PASS ename is 'TransactionInactiveError'
118 Exception message: The transaction is not active. 118 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The trans action is not active.
119 Expecting exception from store.openCursor(0, 'next') 119 Expecting exception from store.openCursor(0, 'next')
120 PASS Exception was thrown. 120 PASS Exception was thrown.
121 PASS code is 0 121 PASS code is 0
122 PASS ename is 'TransactionInactiveError' 122 PASS ename is 'TransactionInactiveError'
123 Exception message: The transaction is not active. 123 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The trans action is not active.
124 Expecting exception from store.openCursor(IDBKeyRange.only(0)) 124 Expecting exception from store.openCursor(IDBKeyRange.only(0))
125 PASS Exception was thrown. 125 PASS Exception was thrown.
126 PASS code is 0 126 PASS code is 0
127 PASS ename is 'TransactionInactiveError' 127 PASS ename is 'TransactionInactiveError'
128 Exception message: The transaction is not active. 128 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The trans action is not active.
129 Expecting exception from store.openCursor(IDBKeyRange.only(0), 'next') 129 Expecting exception from store.openCursor(IDBKeyRange.only(0), 'next')
130 PASS Exception was thrown. 130 PASS Exception was thrown.
131 PASS code is 0 131 PASS code is 0
132 PASS ename is 'TransactionInactiveError' 132 PASS ename is 'TransactionInactiveError'
133 Exception message: The transaction is not active. 133 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The trans action is not active.
134 Expecting exception from index.get(0) 134 Expecting exception from index.get(0)
135 PASS Exception was thrown. 135 PASS Exception was thrown.
136 PASS code is 0 136 PASS code is 0
137 PASS ename is 'TransactionInactiveError' 137 PASS ename is 'TransactionInactiveError'
138 Exception message: The transaction is not active. 138 Exception message: Failed to execute 'get' on 'IDBIndex': The transaction is not active.
139 Expecting exception from index.get(IDBKeyRange.only(0)) 139 Expecting exception from index.get(IDBKeyRange.only(0))
140 PASS Exception was thrown. 140 PASS Exception was thrown.
141 PASS code is 0 141 PASS code is 0
142 PASS ename is 'TransactionInactiveError' 142 PASS ename is 'TransactionInactiveError'
143 Exception message: The transaction is not active. 143 Exception message: Failed to execute 'get' on 'IDBIndex': The transaction is not active.
144 Expecting exception from index.getKey(0) 144 Expecting exception from index.getKey(0)
145 PASS Exception was thrown. 145 PASS Exception was thrown.
146 PASS code is 0 146 PASS code is 0
147 PASS ename is 'TransactionInactiveError' 147 PASS ename is 'TransactionInactiveError'
148 Exception message: The transaction is not active. 148 Exception message: Failed to execute 'getKey' on 'IDBIndex': The transaction is not active.
149 Expecting exception from index.getKey(IDBKeyRange.only(0)) 149 Expecting exception from index.getKey(IDBKeyRange.only(0))
150 PASS Exception was thrown. 150 PASS Exception was thrown.
151 PASS code is 0 151 PASS code is 0
152 PASS ename is 'TransactionInactiveError' 152 PASS ename is 'TransactionInactiveError'
153 Exception message: The transaction is not active. 153 Exception message: Failed to execute 'getKey' on 'IDBIndex': The transaction is not active.
154 Expecting exception from index.count() 154 Expecting exception from index.count()
155 PASS Exception was thrown. 155 PASS Exception was thrown.
156 PASS code is 0 156 PASS code is 0
157 PASS ename is 'TransactionInactiveError' 157 PASS ename is 'TransactionInactiveError'
158 Exception message: The transaction is not active. 158 Exception message: Failed to execute 'count' on 'IDBIndex': The transaction is n ot active.
159 Expecting exception from index.count(0) 159 Expecting exception from index.count(0)
160 PASS Exception was thrown. 160 PASS Exception was thrown.
161 PASS code is 0 161 PASS code is 0
162 PASS ename is 'TransactionInactiveError' 162 PASS ename is 'TransactionInactiveError'
163 Exception message: The transaction is not active. 163 Exception message: Failed to execute 'count' on 'IDBIndex': The transaction is n ot active.
164 Expecting exception from index.count(IDBKeyRange.only(0)) 164 Expecting exception from index.count(IDBKeyRange.only(0))
165 PASS Exception was thrown. 165 PASS Exception was thrown.
166 PASS code is 0 166 PASS code is 0
167 PASS ename is 'TransactionInactiveError' 167 PASS ename is 'TransactionInactiveError'
168 Exception message: The transaction is not active. 168 Exception message: Failed to execute 'count' on 'IDBIndex': The transaction is n ot active.
169 Expecting exception from index.openCursor() 169 Expecting exception from index.openCursor()
170 PASS Exception was thrown. 170 PASS Exception was thrown.
171 PASS code is 0 171 PASS code is 0
172 PASS ename is 'TransactionInactiveError' 172 PASS ename is 'TransactionInactiveError'
173 Exception message: The transaction is not active. 173 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The transaction is not active.
174 Expecting exception from index.openCursor(0) 174 Expecting exception from index.openCursor(0)
175 PASS Exception was thrown. 175 PASS Exception was thrown.
176 PASS code is 0 176 PASS code is 0
177 PASS ename is 'TransactionInactiveError' 177 PASS ename is 'TransactionInactiveError'
178 Exception message: The transaction is not active. 178 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The transaction is not active.
179 Expecting exception from index.openCursor(0, 'next') 179 Expecting exception from index.openCursor(0, 'next')
180 PASS Exception was thrown. 180 PASS Exception was thrown.
181 PASS code is 0 181 PASS code is 0
182 PASS ename is 'TransactionInactiveError' 182 PASS ename is 'TransactionInactiveError'
183 Exception message: The transaction is not active. 183 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The transaction is not active.
184 Expecting exception from index.openCursor(IDBKeyRange.only(0)) 184 Expecting exception from index.openCursor(IDBKeyRange.only(0))
185 PASS Exception was thrown. 185 PASS Exception was thrown.
186 PASS code is 0 186 PASS code is 0
187 PASS ename is 'TransactionInactiveError' 187 PASS ename is 'TransactionInactiveError'
188 Exception message: The transaction is not active. 188 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The transaction is not active.
189 Expecting exception from index.openCursor(IDBKeyRange.only(0), 'next') 189 Expecting exception from index.openCursor(IDBKeyRange.only(0), 'next')
190 PASS Exception was thrown. 190 PASS Exception was thrown.
191 PASS code is 0 191 PASS code is 0
192 PASS ename is 'TransactionInactiveError' 192 PASS ename is 'TransactionInactiveError'
193 Exception message: The transaction is not active. 193 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The transaction is not active.
194 Expecting exception from index.openKeyCursor() 194 Expecting exception from index.openKeyCursor()
195 PASS Exception was thrown. 195 PASS Exception was thrown.
196 PASS code is 0 196 PASS code is 0
197 PASS ename is 'TransactionInactiveError' 197 PASS ename is 'TransactionInactiveError'
198 Exception message: The transaction is not active. 198 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The transact ion is not active.
199 Expecting exception from index.openKeyCursor(0) 199 Expecting exception from index.openKeyCursor(0)
200 PASS Exception was thrown. 200 PASS Exception was thrown.
201 PASS code is 0 201 PASS code is 0
202 PASS ename is 'TransactionInactiveError' 202 PASS ename is 'TransactionInactiveError'
203 Exception message: The transaction is not active. 203 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The transact ion is not active.
204 Expecting exception from index.openKeyCursor(0, 'next') 204 Expecting exception from index.openKeyCursor(0, 'next')
205 PASS Exception was thrown. 205 PASS Exception was thrown.
206 PASS code is 0 206 PASS code is 0
207 PASS ename is 'TransactionInactiveError' 207 PASS ename is 'TransactionInactiveError'
208 Exception message: The transaction is not active. 208 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The transact ion is not active.
209 Expecting exception from index.openKeyCursor(IDBKeyRange.only(0)) 209 Expecting exception from index.openKeyCursor(IDBKeyRange.only(0))
210 PASS Exception was thrown. 210 PASS Exception was thrown.
211 PASS code is 0 211 PASS code is 0
212 PASS ename is 'TransactionInactiveError' 212 PASS ename is 'TransactionInactiveError'
213 Exception message: The transaction is not active. 213 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The transact ion is not active.
214 Expecting exception from index.openKeyCursor(IDBKeyRange.only(0), 'next') 214 Expecting exception from index.openKeyCursor(IDBKeyRange.only(0), 'next')
215 PASS Exception was thrown. 215 PASS Exception was thrown.
216 PASS code is 0 216 PASS code is 0
217 PASS ename is 'TransactionInactiveError' 217 PASS ename is 'TransactionInactiveError'
218 Exception message: The transaction is not active. 218 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The transact ion is not active.
219 219
220 testEventCallback(): 220 testEventCallback():
221 Transaction should be active inside a non-IDB-event callback 221 Transaction should be active inside a non-IDB-event callback
222 store = transaction.objectStore('store') 222 store = transaction.objectStore('store')
223 index = store.index('index') 223 index = store.index('index')
224 PASS store.add(0, 0) did not throw exception. 224 PASS store.add(0, 0) did not throw exception.
225 PASS store.put(0, 0) did not throw exception. 225 PASS store.put(0, 0) did not throw exception.
226 PASS store.get(0) did not throw exception. 226 PASS store.get(0) did not throw exception.
227 PASS store.get(IDBKeyRange.only(0)) did not throw exception. 227 PASS store.get(IDBKeyRange.only(0)) did not throw exception.
228 PASS store.delete(0) did not throw exception. 228 PASS store.delete(0) did not throw exception.
(...skipping 23 matching lines...) Expand all
252 PASS index.openKeyCursor(0) did not throw exception. 252 PASS index.openKeyCursor(0) did not throw exception.
253 PASS index.openKeyCursor(0, 'next') did not throw exception. 253 PASS index.openKeyCursor(0, 'next') did not throw exception.
254 PASS index.openKeyCursor(IDBKeyRange.only(0)) did not throw exception. 254 PASS index.openKeyCursor(IDBKeyRange.only(0)) did not throw exception.
255 PASS index.openKeyCursor(IDBKeyRange.only(0), 'next') did not throw exception. 255 PASS index.openKeyCursor(IDBKeyRange.only(0), 'next') did not throw exception.
256 256
257 transactionComplete(): 257 transactionComplete():
258 Expecting exception from store = transaction.objectStore('store') 258 Expecting exception from store = transaction.objectStore('store')
259 PASS Exception was thrown. 259 PASS Exception was thrown.
260 PASS code is DOMException.INVALID_STATE_ERR 260 PASS code is DOMException.INVALID_STATE_ERR
261 PASS ename is 'InvalidStateError' 261 PASS ename is 'InvalidStateError'
262 Exception message: The transaction has finished. 262 Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The tran saction has finished.
263 PASS successfullyParsed is true 263 PASS successfullyParsed is true
264 264
265 TEST COMPLETE 265 TEST COMPLETE
266 266
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698