1 if (this.importScripts) {
2 importScripts('../../../resources/js-test.js');
3 importScripts('shared.js');
6 description("Test IndexedDB readonly properties");
8 function setReadonlyProperty(property, value)
10 oldValue = eval(property);
11 debug("trying to set readonly property " + property);
12 evalAndLog(property + " = " + value);
13 newValue = eval(property);
14 if (oldValue == newValue) {
15 testPassed(property + " is still " + oldValue);
17 testFailed(property + " value was changed to " + newValue);
21 indexedDBTest(prepareDatabase);
22 function prepareDatabase()
24 db = event.target.result;
25 objectStore = evalAndLog("objectStore = db.createObjectStore('foo');");
26 setReadonlyProperty("objectStore.transaction", "this");