| OLD | NEW |
| 1 CONSOLE WARNING: 'DOMStringList.contains()' is deprecated, and will be removed. |
| 1 Test the basics of IndexedDB's IDBObjectStore. | 2 Test the basics of IndexedDB's IDBObjectStore. |
| 2 | 3 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 5 |
| 5 | 6 |
| 6 dbname = "objectstore-basics.html" | 7 dbname = "objectstore-basics.html" |
| 7 indexedDB.deleteDatabase(dbname) | 8 indexedDB.deleteDatabase(dbname) |
| 8 indexedDB.open(dbname) | 9 indexedDB.open(dbname) |
| 9 | 10 |
| 10 prepareDatabase(): | 11 prepareDatabase(): |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 PASS db.version is 1 | 73 PASS db.version is 1 |
| 73 PASS store.transaction is setVersionTrans | 74 PASS store.transaction is setVersionTrans |
| 74 PASS store.indexNames is ['indexName'] | 75 PASS store.indexNames is ['indexName'] |
| 75 PASS store.indexNames.length is 1 | 76 PASS store.indexNames.length is 1 |
| 76 PASS store.indexNames.contains('') is false | 77 PASS store.indexNames.contains('') is false |
| 77 PASS store.indexNames.contains('indexFail') is false | 78 PASS store.indexNames.contains('indexFail') is false |
| 78 PASS store.indexNames.contains('indexName') is true | 79 PASS store.indexNames.contains('indexName') is true |
| 79 PASS store.indexNames[0] is "indexName" | 80 PASS store.indexNames[0] is "indexName" |
| 80 PASS store.indexNames[1] is undefined. | 81 PASS store.indexNames[1] is undefined. |
| 81 PASS store.indexNames[100] is undefined. | 82 PASS store.indexNames[100] is undefined. |
| 82 PASS store.indexNames.item(1) is null | |
| 83 PASS store.indexNames.item(100) is null | |
| 84 | 83 |
| 85 openAgain(): | 84 openAgain(): |
| 86 indexedDB.open(dbname) | 85 indexedDB.open(dbname) |
| 87 | 86 |
| 88 addData(): | 87 addData(): |
| 89 db = event.target.result | 88 db = event.target.result |
| 90 transaction = db.transaction(['storeName'], 'readwrite') | 89 transaction = db.transaction(['storeName'], 'readwrite') |
| 91 store = transaction.objectStore('storeName') | 90 store = transaction.objectStore('storeName') |
| 92 Try to insert data with a Date key: | 91 Try to insert data with a Date key: |
| 93 store.add({x: 'foo'}, testDate) | 92 store.add({x: 'foo'}, testDate) |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 The key parameter was provided but does not contain a valid key. | 225 The key parameter was provided but does not contain a valid key. |
| 227 Expecting exception from storeWithOutOfLineKeys.add({}, null) | 226 Expecting exception from storeWithOutOfLineKeys.add({}, null) |
| 228 PASS Exception was thrown. | 227 PASS Exception was thrown. |
| 229 PASS code is 0 | 228 PASS code is 0 |
| 230 PASS ename is 'DataError' | 229 PASS ename is 'DataError' |
| 231 Exception message: Failed to execute 'add' on 'IDBObjectStore': The parameter is
not a valid key. | 230 Exception message: Failed to execute 'add' on 'IDBObjectStore': The parameter is
not a valid key. |
| 232 PASS successfullyParsed is true | 231 PASS successfullyParsed is true |
| 233 | 232 |
| 234 TEST COMPLETE | 233 TEST COMPLETE |
| 235 | 234 |
| OLD | NEW |