blob: d8d015fc9537f1d1a6e98c21c25aa6981296f3e5 [file] [log] [blame]
if (this.importScripts) {
importScripts('../../../resources/js-test.js');
importScripts('shared.js');
}
description("Ensure that some obsolete IndexedDB features are gone.");
function test()
{
removeVendorPrefixes();
setDBNameFromPath();
shouldBeUndefined("self.webkitIDBDatabaseError");
shouldBeFalse("'IDBDatabaseException' in self");
shouldBeFalse("'errorCode' in indexedDB.open(dbname)");
shouldBeFalse("'setVersion' in IDBDatabase.prototype");
if ('document' in self) {
shouldThrow("document.createEvent('IDBUpgradeNeededEvent')");
shouldBeFalse("'version' in document.createEvent('IDBVersionChangeEvent')");
}
finishJSTest();
}
test();