| 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 object store required arguments"); | 6 description("Test IndexedDB object store required arguments"); |
| 7 | 7 |
| 8 indexedDBTest(prepareDatabase); | 8 indexedDBTest(prepareDatabase); |
| 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 | 13 |
| 14 objectStore = evalAndLog("objectStore = db.createObjectStore('foo');"); | 14 objectStore = evalAndLog("objectStore = db.createObjectStore('foo');"); |
| 15 shouldThrow("objectStore.put();"); | 15 shouldThrow("objectStore.put();"); |
| 16 shouldThrow("objectStore.add();"); | 16 shouldThrow("objectStore.add();"); |
| 17 shouldThrow("objectStore.delete();"); | 17 shouldThrow("objectStore.delete();"); |
| 18 shouldThrow("objectStore.get();"); | 18 shouldThrow("objectStore.get();"); |
| 19 shouldThrow("objectStore.createIndex();"); | 19 shouldThrow("objectStore.createIndex();"); |
| 20 shouldThrow("objectStore.createIndex('foo');"); | 20 shouldThrow("objectStore.createIndex('foo');"); |
| 21 shouldThrow("objectStore.index();"); | 21 shouldThrow("objectStore.index();"); |
| 22 shouldThrow("objectStore.deleteIndex();"); | 22 shouldThrow("objectStore.deleteIndex();"); |
| 23 finishJSTest(); | 23 finishJSTest(); |
| 24 } | 24 } |
| OLD | NEW |