OLD | NEW |
1 Test consistency of IndexedDB's cursor objects. | 1 Test consistency of IndexedDB's cursor objects. |
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 = "cursor-inconsistency.html" | 6 dbname = "cursor-inconsistency.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
11 setVersionSuccess(): | 9 setVersionSuccess(): |
12 trans = event.target.transaction | 10 trans = event.target.transaction |
13 PASS trans is non-null. | 11 PASS trans is non-null. |
14 objectStore = db.createObjectStore('basicStore') | 12 objectStore = db.createObjectStore('basicStore') |
15 objectStore.add('someValue1', 'someKey1').onerror = unexpectedErrorCallback | 13 objectStore.add('someValue1', 'someKey1').onerror = unexpectedErrorCallback |
16 objectStore.add('someValue2', 'someKey2').onerror = unexpectedErrorCallback | 14 objectStore.add('someValue2', 'someKey2').onerror = unexpectedErrorCallback |
17 objectStore.add('someValue3', 'someKey3').onerror = unexpectedErrorCallback | 15 objectStore.add('someValue3', 'someKey3').onerror = unexpectedErrorCallback |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 PASS event.target.result.value is "someValue4" | 52 PASS event.target.result.value is "someValue4" |
55 event.target.result.continue() | 53 event.target.result.continue() |
56 | 54 |
57 checkCursor() | 55 checkCursor() |
58 PASS counter is 5 | 56 PASS counter is 5 |
59 transactionComplete() | 57 transactionComplete() |
60 PASS successfullyParsed is true | 58 PASS successfullyParsed is true |
61 | 59 |
62 TEST COMPLETE | 60 TEST COMPLETE |
63 | 61 |
OLD | NEW |