OLD | NEW |
1 Test IndexedDB key types | 1 Test IndexedDB key types |
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 = "key-type-array.html" | 6 dbname = "key-type-array.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
11 db.createObjectStore('store'); | 9 db.createObjectStore('store'); |
12 | 10 |
13 trans = db.transaction('store', 'readwrite') | 11 trans = db.transaction('store', 'readwrite') |
14 store = trans.objectStore('store') | 12 store = trans.objectStore('store') |
15 | 13 |
16 long_array = []; for (i = 0; i < 1000; ++i) { long_array.push('abc', 123, new Da
te(0), []); } | 14 long_array = []; for (i = 0; i < 1000; ++i) { long_array.push('abc', 123, new Da
te(0), []); } |
17 | 15 |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 Expecting exception from indexedDB.cmp(makeArrayOfDepth(2500), 0) | 280 Expecting exception from indexedDB.cmp(makeArrayOfDepth(2500), 0) |
283 PASS Exception was thrown. | 281 PASS Exception was thrown. |
284 PASS code is 0 | 282 PASS code is 0 |
285 PASS ename is 'DataError' | 283 PASS ename is 'DataError' |
286 Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not
a valid key. | 284 Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not
a valid key. |
287 | 285 |
288 PASS successfullyParsed is true | 286 PASS successfullyParsed is true |
289 | 287 |
290 TEST COMPLETE | 288 TEST COMPLETE |
291 | 289 |
OLD | NEW |