| OLD | NEW |
| 1 Test IndexedDB object store required arguments | 1 Test IndexedDB object store required arguments |
| 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 = "objectStore-required-arguments.html" | 8 dbname = "objectStore-required-arguments.html" |
| 9 indexedDB.deleteDatabase(dbname) | 9 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 10 indexedDB.open(dbname) |
| 11 objectStore = db.createObjectStore('foo'); | 11 objectStore = db.createObjectStore('foo'); |
| 12 PASS objectStore.put(); threw exception TypeError: Not enough arguments. | 12 PASS objectStore.put(); threw exception TypeError: Failed to execute 'put' on 'I
DBObjectStore': 1 argument required, but only 0 present.. |
| 13 PASS objectStore.add(); threw exception TypeError: Not enough arguments. | 13 PASS objectStore.add(); threw exception TypeError: Failed to execute 'add' on 'I
DBObjectStore': 1 argument required, but only 0 present.. |
| 14 PASS objectStore.delete(); threw exception TypeError: Not enough arguments. | 14 PASS objectStore.delete(); threw exception TypeError: Failed to execute 'delete'
on 'IDBObjectStore': 1 argument required, but only 0 present.. |
| 15 PASS objectStore.get(); threw exception TypeError: Not enough arguments. | 15 PASS objectStore.get(); threw exception TypeError: Failed to execute 'get' on 'I
DBObjectStore': 1 argument required, but only 0 present.. |
| 16 PASS objectStore.createIndex(); threw exception TypeError: Not enough arguments. | 16 PASS objectStore.createIndex(); threw exception TypeError: Failed to execute 'cr
eateIndex' on 'IDBObjectStore': 2 arguments required, but only 0 present.. |
| 17 PASS objectStore.createIndex('foo'); threw exception TypeError: Not enough argum
ents. | 17 PASS objectStore.createIndex('foo'); threw exception TypeError: Failed to execut
e 'createIndex' on 'IDBObjectStore': 2 arguments required, but only 1 present.. |
| 18 PASS objectStore.index(); threw exception TypeError: Not enough arguments. | 18 PASS objectStore.index(); threw exception TypeError: Failed to execute 'index' o
n 'IDBObjectStore': 1 argument required, but only 0 present.. |
| 19 PASS objectStore.deleteIndex(); threw exception TypeError: Not enough arguments. | 19 PASS objectStore.deleteIndex(); threw exception TypeError: Failed to execute 'de
leteIndex' on 'IDBObjectStore': 1 argument required, but only 0 present.. |
| 20 PASS successfullyParsed is true | 20 PASS successfullyParsed is true |
| 21 | 21 |
| 22 TEST COMPLETE | 22 TEST COMPLETE |
| 23 | 23 |
| OLD | NEW |