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 features of IndexedDB's multiEntry indices."); | 6 description("Test features of IndexedDB's multiEntry indices."); |
7 | 7 |
8 indexedDBTest(prepareDatabase, addData); | 8 indexedDBTest(prepareDatabase, addData); |
9 function prepareDatabase() | 9 function prepareDatabase() |
10 { | 10 { |
11 db = event.target.result; | 11 db = event.target.result; |
12 | 12 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 request.onupgradeneeded = function() { | 135 request.onupgradeneeded = function() { |
136 evalAndLog("db = event.target.result"); | 136 evalAndLog("db = event.target.result"); |
137 evalAndLog("trans = event.target.transaction"); | 137 evalAndLog("trans = event.target.transaction"); |
138 trans.onabort = unexpectedAbortCallback; | 138 trans.onabort = unexpectedAbortCallback; |
139 | 139 |
140 store = evalAndLog("store = trans.objectStore('store')"); | 140 store = evalAndLog("store = trans.objectStore('store')"); |
141 evalAndLog("store.createIndex('index-new', 'x', {multiEntry: true})"); | 141 evalAndLog("store.createIndex('index-new', 'x', {multiEntry: true})"); |
142 }; | 142 }; |
143 request.onsuccess = function() { verifyIndexes('index-new', finishJSTest); }
; | 143 request.onsuccess = function() { verifyIndexes('index-new', finishJSTest); }
; |
144 } | 144 } |
OLD | NEW |