OLD | NEW |
1 Test IndexedDB transaction basics. | 1 Test IndexedDB transaction 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 dbname = "transaction-basics.html" | 6 dbname = "transaction-basics.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
11 PASS self.db.objectStoreNames is [] | 9 PASS self.db.objectStoreNames is [] |
12 PASS self.db.objectStoreNames.length is 0 | 10 PASS self.db.objectStoreNames.length is 0 |
13 PASS self.db.objectStoreNames.contains('storeFail') is false | 11 PASS self.db.objectStoreNames.contains('storeFail') is false |
14 request = newConnection() | 12 request = newConnection() |
15 indexedDB.open(dbname, 2) | 13 indexedDB.open(dbname, 2) |
16 addRemoveIDBObjects(): | 14 addRemoveIDBObjects(): |
17 trans = event.target.transaction | 15 trans = event.target.transaction |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 db.createObjectStore('null') | 246 db.createObjectStore('null') |
249 db.createObjectStore('undefined') | 247 db.createObjectStore('undefined') |
250 PASS transaction = db.transaction(null) did not throw exception. | 248 PASS transaction = db.transaction(null) did not throw exception. |
251 PASS transaction.objectStore('null') is non-null. | 249 PASS transaction.objectStore('null') is non-null. |
252 PASS transaction = db.transaction(undefined) did not throw exception. | 250 PASS transaction = db.transaction(undefined) did not throw exception. |
253 PASS transaction.objectStore('undefined') is non-null. | 251 PASS transaction.objectStore('undefined') is non-null. |
254 PASS successfullyParsed is true | 252 PASS successfullyParsed is true |
255 | 253 |
256 TEST COMPLETE | 254 TEST COMPLETE |
257 | 255 |
OLD | NEW |