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