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 use of identical keypaths between objectstores and indexes
"); | 6 description("Test the use of identical keypaths between objectstores and indexes
"); |
7 | 7 |
8 indexedDBTest(prepareDatabase, storeCollidedStoreIndexData); | 8 indexedDBTest(prepareDatabase, storeCollidedStoreIndexData); |
9 function prepareDatabase() | 9 function prepareDatabase() |
10 { | 10 { |
11 db = event.target.result; | 11 db = event.target.result; |
12 event.target.transaction.onabort = unexpectedAbortCallback; | 12 event.target.transaction.onabort = unexpectedAbortCallback; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 evalAndLog("index.get(10)").onsuccess = resultShouldBe('{"bar":"baz","fo
o":10}'); | 75 evalAndLog("index.get(10)").onsuccess = resultShouldBe('{"bar":"baz","fo
o":10}'); |
76 }; | 76 }; |
77 | 77 |
78 trans.oncomplete = testCollideIndexIndexSetup; | 78 trans.oncomplete = testCollideIndexIndexSetup; |
79 trans.onabort = unexpectedAbortCallback; | 79 trans.onabort = unexpectedAbortCallback; |
80 } | 80 } |
81 | 81 |
82 function testCollideIndexIndexSetup() { | 82 function testCollideIndexIndexSetup() { |
83 finishJSTest(); | 83 finishJSTest(); |
84 } | 84 } |
OLD | NEW |