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 webkitIDBIndex."); | 6 description("Test the basics of IndexedDB's webkitIDBIndex."); |
7 | 7 |
8 indexedDBTest(prepareDatabase); | 8 indexedDBTest(prepareDatabase); |
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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 shouldBe("event.target.result", "2"); | 315 shouldBe("event.target.result", "2"); |
316 | 316 |
317 debug("Passing an invalid key into indexObject.get({})."); | 317 debug("Passing an invalid key into indexObject.get({})."); |
318 evalAndExpectException("indexObject.get({})", "0", "'DataError'"); | 318 evalAndExpectException("indexObject.get({})", "0", "'DataError'"); |
319 | 319 |
320 debug("Passing an invalid key into indexObject.getKey({})."); | 320 debug("Passing an invalid key into indexObject.getKey({})."); |
321 evalAndExpectException("indexObject.getKey({})", "0", "'DataError'"); | 321 evalAndExpectException("indexObject.getKey({})", "0", "'DataError'"); |
322 | 322 |
323 finishJSTest(); | 323 finishJSTest(); |
324 } | 324 } |
OLD | NEW |