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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 "CSSValue", | 90 "CSSValue", |
91 "CharacterData", | 91 "CharacterData", |
92 "Comment", | 92 "Comment", |
93 "DOMException", | 93 "DOMException", |
94 "DOMImplementation", | 94 "DOMImplementation", |
95 "DOMParser", | 95 "DOMParser", |
96 "Document", | 96 "Document", |
97 "DocumentFragment", | 97 "DocumentFragment", |
98 "DocumentType", | 98 "DocumentType", |
99 "Element", | 99 "Element", |
100 "Entity", | |
101 "EvalError", | 100 "EvalError", |
102 "Event", | 101 "Event", |
103 "HTMLAnchorElement", | 102 "HTMLAnchorElement", |
104 "HTMLAppletElement", | 103 "HTMLAppletElement", |
105 "HTMLAreaElement", | 104 "HTMLAreaElement", |
106 "HTMLBRElement", | 105 "HTMLBRElement", |
107 "HTMLBaseElement", | 106 "HTMLBaseElement", |
108 "HTMLBodyElement", | 107 "HTMLBodyElement", |
109 "HTMLButtonElement", | 108 "HTMLButtonElement", |
110 "HTMLCanvasElement", | 109 "HTMLCanvasElement", |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 | 319 |
321 log("\n----- tests for getting/setting event handlers -----\n"); | 320 log("\n----- tests for getting/setting event handlers -----\n"); |
322 | 321 |
323 for (var i = 0; i < windowEventHandlers.length; i++) { | 322 for (var i = 0; i < windowEventHandlers.length; i++) { |
324 var property = windowEventHandlers[i]; | 323 var property = windowEventHandlers[i]; |
325 shouldBeTrue("canGet('" + property + "')"); | 324 shouldBeTrue("canGet('" + property + "')"); |
326 shouldBeTrue("canSetWithCallable('" + property + "')"); | 325 shouldBeTrue("canSetWithCallable('" + property + "')"); |
327 } | 326 } |
328 } | 327 } |
329 </script> | 328 </script> |
OLD | NEW |