| OLD | NEW |
| 1 if (this.importScripts) { | 1 if (this.importScripts) { |
| 2 importScripts('../../../resources/js-test.js'); | 2 importScripts('../../../resources/js-test.js'); |
| 3 importScripts('shared.js'); | 3 importScripts('shared.js'); |
| 4 } | 4 } |
| 5 | 5 |
| 6 description("Test IndexedDB's webkitIDBObjectStore.deleteObjectStore()."); | 6 description("Test IndexedDB's IDBObjectStore.deleteObjectStore()."); |
| 7 | 7 |
| 8 indexedDBTest(prepareDatabase, getValue); | 8 indexedDBTest(prepareDatabase, getValue); |
| 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; |
| 13 store = evalAndLog("store = db.createObjectStore('storeName', null)"); | 13 store = evalAndLog("store = db.createObjectStore('storeName', null)"); |
| 14 | 14 |
| 15 self.index = evalAndLog("store.createIndex('indexName', '')"); | 15 self.index = evalAndLog("store.createIndex('indexName', '')"); |
| 16 shouldBeTrue("store.indexNames.contains('indexName')"); | 16 shouldBeTrue("store.indexNames.contains('indexName')"); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 request.onerror = unexpectedErrorCallback; | 73 request.onerror = unexpectedErrorCallback; |
| 74 } | 74 } |
| 75 | 75 |
| 76 function verifyNotFound() | 76 function verifyNotFound() |
| 77 { | 77 { |
| 78 shouldBe("event.target.result", "undefined"); | 78 shouldBe("event.target.result", "undefined"); |
| 79 shouldBeFalse("event.target.source.indexNames.contains('indexName')"); | 79 shouldBeFalse("event.target.source.indexNames.contains('indexName')"); |
| 80 | 80 |
| 81 finishJSTest(); | 81 finishJSTest(); |
| 82 } | 82 } |
| OLD | NEW |