| OLD | NEW |
| 1 if (this.importScripts) { | 1 if (this.importScripts) { |
| 2 importScripts('../../../fast/js/resources/js-test-pre.js'); | 2 importScripts('../../../resources/js-test.js'); |
| 3 importScripts('shared.js'); | 3 importScripts('shared.js'); |
| 4 } | 4 } |
| 5 | 5 |
| 6 description("Test the basics of IndexedDB's IDBObjectStore."); | 6 description("Test the basics of IndexedDB's IDBObjectStore."); |
| 7 | 7 |
| 8 indexedDBTest(prepareDatabase, testSetVersionAbort); | 8 indexedDBTest(prepareDatabase, testSetVersionAbort); |
| 9 function prepareDatabase(evt) | 9 function prepareDatabase(evt) |
| 10 { | 10 { |
| 11 preamble(evt); | 11 preamble(evt); |
| 12 db = event.target.result; | 12 db = event.target.result; |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 | 300 |
| 301 debug("The object store uses in-line keys but no key generator and the r
esult of evaluating the object store's key path does not yield a value."); | 301 debug("The object store uses in-line keys but no key generator and the r
esult of evaluating the object store's key path does not yield a value."); |
| 302 evalAndExpectException("storeWithInLineKeys.add({})", "0", "'DataError'"
); | 302 evalAndExpectException("storeWithInLineKeys.add({})", "0", "'DataError'"
); |
| 303 | 303 |
| 304 debug("The key parameter was provided but does not contain a valid key."
); | 304 debug("The key parameter was provided but does not contain a valid key."
); |
| 305 evalAndExpectException("storeWithOutOfLineKeys.add({}, null)", "0", "'Da
taError'"); | 305 evalAndExpectException("storeWithOutOfLineKeys.add({}, null)", "0", "'Da
taError'"); |
| 306 | 306 |
| 307 finishJSTest(); | 307 finishJSTest(); |
| 308 }; | 308 }; |
| 309 } | 309 } |
| OLD | NEW |