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