blob: 91c2ee57cc7de90e58fe338b89dc1b174994be36 [file] [log] [blame]
if (this.importScripts) {
importScripts('../../../../resources/js-test.js');
importScripts('../../resources/shared.js');
}
description("Check to make sure IndexedDB in workers can be disabled at runtime");
var propertiesToTest = ['indexedDB', 'IDBCursor', 'IDBCursorWithValue', 'IDBDatabase', 'IDBFactory', 'IDBIndex', 'IDBKeyRange', 'IDBObjectStore', 'IDBOpenDBRequest', 'IDBRequest', 'IDBTransaction', 'IDBVersionChangeEvent'];
for (var i = 0; i < propertiesToTest.length; i++) {
propertyToTest = propertiesToTest[i];
shouldBeUndefined("self." + propertyToTest);
shouldBeFalse("'" + propertyToTest + "' in self");
}
finishJSTest();