| 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("Ensure that some obsolete IndexedDB features are gone."); | 6 description("Ensure that some obsolete IndexedDB features are gone."); |
| 7 | 7 |
| 8 function test() | 8 function test() |
| 9 { | 9 { |
| 10 removeVendorPrefixes(); | 10 removeVendorPrefixes(); |
| 11 setDBNameFromPath(); | 11 setDBNameFromPath(); |
| 12 | 12 |
| 13 shouldBeUndefined("self.webkitIDBDatabaseError"); | 13 shouldBeUndefined("self.webkitIDBDatabaseError"); |
| 14 shouldBeFalse("'IDBDatabaseException' in self"); | 14 shouldBeFalse("'IDBDatabaseException' in self"); |
| 15 shouldBeFalse("'errorCode' in indexedDB.open(dbname)"); | 15 shouldBeFalse("'errorCode' in indexedDB.open(dbname)"); |
| 16 shouldBeFalse("'setVersion' in IDBDatabase.prototype"); | 16 shouldBeFalse("'setVersion' in IDBDatabase.prototype"); |
| 17 | 17 |
| 18 if ('document' in self) { | 18 if ('document' in self) { |
| 19 shouldThrow("document.createEvent('IDBUpgradeNeededEvent')"); | 19 shouldThrow("document.createEvent('IDBUpgradeNeededEvent')"); |
| 20 shouldBeFalse("'version' in document.createEvent('IDBVersionChangeEvent'
)"); | 20 shouldBeFalse("'version' in document.createEvent('IDBVersionChangeEvent'
)"); |
| 21 } | 21 } |
| 22 | 22 |
| 23 finishJSTest(); | 23 finishJSTest(); |
| 24 } | 24 } |
| 25 | 25 |
| 26 test(); | 26 test(); |
| OLD | NEW |