OLD | NEW |
1 Test IndexedDB keyPath with intrinsic properties | 1 Test IndexedDB keyPath with intrinsic properties |
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 = "keypath-intrinsic-properties.html" | 6 dbname = "keypath-intrinsic-properties.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
11 store = db.createObjectStore('store', {keyPath: 'id'}) | 9 store = db.createObjectStore('store', {keyPath: 'id'}) |
12 store.createIndex('string length', 'string.length') | 10 store.createIndex('string length', 'string.length') |
13 store.createIndex('array length', 'array.length') | 11 store.createIndex('array length', 'array.length') |
14 store.createIndex('blob size', 'blob.size') | 12 store.createIndex('blob size', 'blob.size') |
15 store.createIndex('blob type', 'blob.type') | 13 store.createIndex('blob type', 'blob.type') |
16 | 14 |
17 testKeyPaths(): | 15 testKeyPaths(): |
(...skipping 25 matching lines...) Expand all Loading... |
43 request = store.index('blob type').openCursor() | 41 request = store.index('blob type').openCursor() |
44 PASS cursor.key is cursor.value.blob.type | 42 PASS cursor.key is cursor.value.blob.type |
45 PASS cursor.key is cursor.value.blob.type | 43 PASS cursor.key is cursor.value.blob.type |
46 PASS cursor.key is cursor.value.blob.type | 44 PASS cursor.key is cursor.value.blob.type |
47 PASS cursor.key is cursor.value.blob.type | 45 PASS cursor.key is cursor.value.blob.type |
48 PASS cursor.key is cursor.value.blob.type | 46 PASS cursor.key is cursor.value.blob.type |
49 PASS successfullyParsed is true | 47 PASS successfullyParsed is true |
50 | 48 |
51 TEST COMPLETE | 49 TEST COMPLETE |
52 | 50 |
OLD | NEW |