OLD | NEW |
1 <p>This page tests getting and setting window properties and functions.</p> | 1 <p>This page tests getting and setting window properties and functions.</p> |
2 <pre id="console"></pre> | 2 <pre id="console"></pre> |
3 | 3 |
4 <script> | 4 <script> |
5 function log(s) | 5 function log(s) |
6 { | 6 { |
7 document.getElementById("console").appendChild(document.createTextNode(s + "
\n")); | 7 document.getElementById("console").appendChild(document.createTextNode(s + "
\n")); |
8 } | 8 } |
9 | 9 |
10 function shouldBe(a, b) | 10 function shouldBe(a, b) |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 "HTMLUListElement", | 144 "HTMLUListElement", |
145 "Image", | 145 "Image", |
146 "MutationEvent", | 146 "MutationEvent", |
147 "Node", | 147 "Node", |
148 "NodeFilter", | 148 "NodeFilter", |
149 "Notation", | 149 "Notation", |
150 "Option", | 150 "Option", |
151 "ProcessingInstruction", | 151 "ProcessingInstruction", |
152 "Range", | 152 "Range", |
153 "RangeError", | 153 "RangeError", |
154 "RangeException", | |
155 "ReferenceError", | 154 "ReferenceError", |
156 "SyntaxError", | 155 "SyntaxError", |
157 "Text", | 156 "Text", |
158 "TypeError", | 157 "TypeError", |
159 "URIError", | 158 "URIError", |
160 "XMLDocument", | 159 "XMLDocument", |
161 "XMLHttpRequest", | 160 "XMLHttpRequest", |
162 "XMLSerializer", | 161 "XMLSerializer", |
163 "XPathEvaluator", | 162 "XPathEvaluator", |
164 "XPathResult", | 163 "XPathResult", |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 297 |
299 log("\n----- tests for getting/setting functions -----\n"); | 298 log("\n----- tests for getting/setting functions -----\n"); |
300 | 299 |
301 for (var i = 0; i < windowFunctions.length; i++) { //> | 300 for (var i = 0; i < windowFunctions.length; i++) { //> |
302 var property = windowFunctions[i]; | 301 var property = windowFunctions[i]; |
303 shouldBeTrue("canGet('" + property + "')"); | 302 shouldBeTrue("canGet('" + property + "')"); |
304 shouldBeTrue("canSet('" + property + "')"); | 303 shouldBeTrue("canSet('" + property + "')"); |
305 } | 304 } |
306 } | 305 } |
307 </script> | 306 </script> |
OLD | NEW |