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 IndexedDB's createObjectStore's various options"); | 6 description("Test IndexedDB's createObjectStore's various options"); |
7 | 7 |
8 indexedDBTest(prepareDatabase, setVersionComplete); | 8 indexedDBTest(prepareDatabase, setVersionComplete); |
9 function prepareDatabase() | 9 function prepareDatabase() |
10 { | 10 { |
11 db = event.target.result; | 11 db = event.target.result; |
12 | 12 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 req.onsuccess = checkB; | 52 req.onsuccess = checkB; |
53 req.onerror = unexpectedErrorCallback; | 53 req.onerror = unexpectedErrorCallback; |
54 } | 54 } |
55 | 55 |
56 function checkB() | 56 function checkB() |
57 { | 57 { |
58 shouldBe("event.target.result.a", "{a: 0}"); | 58 shouldBe("event.target.result.a", "{a: 0}"); |
59 | 59 |
60 finishJSTest(); | 60 finishJSTest(); |
61 } | 61 } |
OLD | NEW |