OLD | NEW |
1 Test IndexedDB's IDBCursor.continue() behavior when called beyond normal scope. | 1 Test IndexedDB's IDBCursor.continue() behavior when called beyond normal scope. |
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-continue-validity.html" | 6 dbname = "cursor-continue-validity.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
11 trans = event.target.transaction | 9 trans = event.target.transaction |
12 PASS trans is non-null. | 10 PASS trans is non-null. |
13 db.createObjectStore('someObjectStore') | 11 db.createObjectStore('someObjectStore') |
14 objectStore.createIndex('someIndex', 'x') | 12 objectStore.createIndex('someIndex', 'x') |
15 objectStore.add({'x': 0 }, 0) | 13 objectStore.add({'x': 0 }, 0) |
16 objectStore.add({'x': 1 }, 1) | 14 objectStore.add({'x': 1 }, 1) |
17 objectStore.add({'x': 2 }, 2) | 15 objectStore.add({'x': 2 }, 2) |
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
931 cursor.continue() | 929 cursor.continue() |
932 Expecting exception from cursor.delete() | 930 Expecting exception from cursor.delete() |
933 PASS Exception was thrown. | 931 PASS Exception was thrown. |
934 PASS code is DOMException.INVALID_STATE_ERR | 932 PASS code is DOMException.INVALID_STATE_ERR |
935 Exception message: Failed to execute 'delete' on 'IDBCursor': The cursor is bein
g iterated or has iterated past its end. | 933 Exception message: Failed to execute 'delete' on 'IDBCursor': The cursor is bein
g iterated or has iterated past its end. |
936 cursor = event.target.result | 934 cursor = event.target.result |
937 PASS successfullyParsed is true | 935 PASS successfullyParsed is true |
938 | 936 |
939 TEST COMPLETE | 937 TEST COMPLETE |
940 | 938 |
OLD | NEW |