| OLD | NEW |
| (Empty) |
| 1 if (this.importScripts) { | |
| 2 importScripts('../../../resources/js-test.js'); | |
| 3 importScripts('shared.js'); | |
| 4 } | |
| 5 | |
| 6 description("Ensure that some obsolete IndexedDB features are gone."); | |
| 7 | |
| 8 function test() | |
| 9 { | |
| 10 setDBNameFromPath(); | |
| 11 | |
| 12 shouldBeUndefined("self.webkitIDBDatabaseError"); | |
| 13 shouldBeFalse("'IDBDatabaseException' in self"); | |
| 14 shouldBeFalse("'errorCode' in indexedDB.open(dbname)"); | |
| 15 shouldBeFalse("'setVersion' in IDBDatabase.prototype"); | |
| 16 | |
| 17 if ('document' in self) { | |
| 18 shouldThrow("document.createEvent('IDBUpgradeNeededEvent')"); | |
| 19 shouldBeFalse("'version' in document.createEvent('IDBVersionChangeEvent'
)"); | |
| 20 } | |
| 21 | |
| 22 finishJSTest(); | |
| 23 } | |
| 24 | |
| 25 test(); | |
| OLD | NEW |