| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 "HTMLTableElement", | 150 "HTMLTableElement", |
| 151 "HTMLTableRowElement", | 151 "HTMLTableRowElement", |
| 152 "HTMLTableSectionElement", | 152 "HTMLTableSectionElement", |
| 153 "HTMLTextAreaElement", | 153 "HTMLTextAreaElement", |
| 154 "HTMLTitleElement", | 154 "HTMLTitleElement", |
| 155 "HTMLUListElement", | 155 "HTMLUListElement", |
| 156 "Image", | 156 "Image", |
| 157 "MutationEvent", | 157 "MutationEvent", |
| 158 "Node", | 158 "Node", |
| 159 "NodeFilter", | 159 "NodeFilter", |
| 160 "Notation", | |
| 161 "Option", | 160 "Option", |
| 162 "ProcessingInstruction", | 161 "ProcessingInstruction", |
| 163 "Range", | 162 "Range", |
| 164 "RangeError", | 163 "RangeError", |
| 165 "ReferenceError", | 164 "ReferenceError", |
| 166 "SyntaxError", | 165 "SyntaxError", |
| 167 "Text", | 166 "Text", |
| 168 "TypeError", | 167 "TypeError", |
| 169 "URIError", | 168 "URIError", |
| 170 "XMLDocument", | 169 "XMLDocument", |
| (...skipping 149 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 |