OLD | NEW |
1 if (this.importScripts) { | 1 if (this.importScripts) { |
2 importScripts('../../../fast/js/resources/js-test-pre.js'); | 2 importScripts('../../../resources/js-test.js'); |
3 importScripts('shared.js'); | 3 importScripts('shared.js'); |
4 } | 4 } |
5 | 5 |
6 description("Test IndexedDB readonly properties"); | 6 description("Test IndexedDB readonly properties"); |
7 | 7 |
8 function setReadonlyProperty(property, value) | 8 function setReadonlyProperty(property, value) |
9 { | 9 { |
10 oldValue = eval(property); | 10 oldValue = eval(property); |
11 debug("trying to set readonly property " + property); | 11 debug("trying to set readonly property " + property); |
12 evalAndLog(property + " = " + value); | 12 evalAndLog(property + " = " + value); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 setReadonlyProperty("request.error", "{}"); | 83 setReadonlyProperty("request.error", "{}"); |
84 setReadonlyProperty("request.source", "this"); | 84 setReadonlyProperty("request.source", "this"); |
85 setReadonlyProperty("request.transaction", "this"); | 85 setReadonlyProperty("request.transaction", "this"); |
86 setReadonlyProperty("request.readyState", "666"); | 86 setReadonlyProperty("request.readyState", "666"); |
87 | 87 |
88 db = evalAndLog("db = event.target.result"); | 88 db = evalAndLog("db = event.target.result"); |
89 setReadonlyProperty("db.name", "'bar'"); | 89 setReadonlyProperty("db.name", "'bar'"); |
90 | 90 |
91 finishJSTest(); | 91 finishJSTest(); |
92 } | 92 } |
OLD | NEW |