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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 "CharacterData", | 78 "CharacterData", |
79 "Comment", | 79 "Comment", |
80 "DOMException", | 80 "DOMException", |
81 "DOMImplementation", | 81 "DOMImplementation", |
82 "DOMParser", | 82 "DOMParser", |
83 "Document", | 83 "Document", |
84 "DocumentFragment", | 84 "DocumentFragment", |
85 "DocumentType", | 85 "DocumentType", |
86 "Element", | 86 "Element", |
87 "Entity", | 87 "Entity", |
88 "EntityReference", | |
89 "EvalError", | 88 "EvalError", |
90 "Event", | 89 "Event", |
91 "HTMLAnchorElement", | 90 "HTMLAnchorElement", |
92 "HTMLAppletElement", | 91 "HTMLAppletElement", |
93 "HTMLAreaElement", | 92 "HTMLAreaElement", |
94 "HTMLBRElement", | 93 "HTMLBRElement", |
95 "HTMLBaseElement", | 94 "HTMLBaseElement", |
96 "HTMLBodyElement", | 95 "HTMLBodyElement", |
97 "HTMLButtonElement", | 96 "HTMLButtonElement", |
98 "HTMLCanvasElement", | 97 "HTMLCanvasElement", |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 | 294 |
296 log("\n----- tests for getting/setting functions -----\n"); | 295 log("\n----- tests for getting/setting functions -----\n"); |
297 | 296 |
298 for (var i = 0; i < windowFunctions.length; i++) { //> | 297 for (var i = 0; i < windowFunctions.length; i++) { //> |
299 var property = windowFunctions[i]; | 298 var property = windowFunctions[i]; |
300 shouldBeTrue("canGet('" + property + "')"); | 299 shouldBeTrue("canGet('" + property + "')"); |
301 shouldBeTrue("canSet('" + property + "')"); | 300 shouldBeTrue("canSet('" + property + "')"); |
302 } | 301 } |
303 } | 302 } |
304 </script> | 303 </script> |
OLD | NEW |