| OLD | NEW |
| 1 Test the basics of IndexedDB's webkitIDBIndex. | 1 Test the basics of IndexedDB's webkitIDBIndex. |
| 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 = "index-basics.html" | 8 dbname = "index-basics.html" |
| 9 indexedDB.deleteDatabase(dbname) | 9 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 10 indexedDB.open(dbname) |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 PASS event.target.result is 4 | 123 PASS event.target.result is 4 |
| 124 request = indexObject2.count() | 124 request = indexObject2.count() |
| 125 PASS event.target.result is 3 | 125 PASS event.target.result is 3 |
| 126 request = indexObject3.count() | 126 request = indexObject3.count() |
| 127 PASS event.target.result is 2 | 127 PASS event.target.result is 2 |
| 128 Passing an invalid key into indexObject.get({}). | 128 Passing an invalid key into indexObject.get({}). |
| 129 Expecting exception from indexObject.get({}) | 129 Expecting exception from indexObject.get({}) |
| 130 PASS Exception was thrown. | 130 PASS Exception was thrown. |
| 131 PASS code is 0 | 131 PASS code is 0 |
| 132 PASS ename is 'DataError' | 132 PASS ename is 'DataError' |
| 133 Exception message: The parameter is not a valid key. |
| 133 Passing an invalid key into indexObject.getKey({}). | 134 Passing an invalid key into indexObject.getKey({}). |
| 134 Expecting exception from indexObject.getKey({}) | 135 Expecting exception from indexObject.getKey({}) |
| 135 PASS Exception was thrown. | 136 PASS Exception was thrown. |
| 136 PASS code is 0 | 137 PASS code is 0 |
| 137 PASS ename is 'DataError' | 138 PASS ename is 'DataError' |
| 139 Exception message: The parameter is not a valid key. |
| 138 PASS successfullyParsed is true | 140 PASS successfullyParsed is true |
| 139 | 141 |
| 140 TEST COMPLETE | 142 TEST COMPLETE |
| 141 | 143 |
| OLD | NEW |