| 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 basics of IndexedDB's IDBDatabase."); | 6 description("Test the basics of IndexedDB's IDBDatabase."); |
| 7 | 7 |
| 8 indexedDBTest(prepareDatabase, testSetVersionAbort); | 8 indexedDBTest(prepareDatabase, testSetVersionAbort); |
| 9 function prepareDatabase() | 9 function prepareDatabase() |
| 10 { | 10 { |
| 11 db = event.target.result; | 11 db = event.target.result; |
| 12 debug("Test that you can't open a transaction while in a versionchange trans
action"); | 12 debug("Test that you can't open a transaction while in a versionchange trans
action"); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 function testClose() | 69 function testClose() |
| 70 { | 70 { |
| 71 evalAndLog("db.close()"); | 71 evalAndLog("db.close()"); |
| 72 debug("Now that the connection is closed, transaction creation should fail")
; | 72 debug("Now that the connection is closed, transaction creation should fail")
; |
| 73 evalAndExpectException("db.transaction('test123')", "DOMException.INVALID_ST
ATE_ERR", "'InvalidStateError'"); | 73 evalAndExpectException("db.transaction('test123')", "DOMException.INVALID_ST
ATE_ERR", "'InvalidStateError'"); |
| 74 debug("Call twice, make sure it's harmless"); | 74 debug("Call twice, make sure it's harmless"); |
| 75 evalAndLog("db.close()"); | 75 evalAndLog("db.close()"); |
| 76 finishJSTest(); | 76 finishJSTest(); |
| 77 } | 77 } |
| OLD | NEW |