| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 "XMLDocument", | 159 "XMLDocument", |
| 160 "XMLHttpRequest", | 160 "XMLHttpRequest", |
| 161 "XMLSerializer", | 161 "XMLSerializer", |
| 162 "XPathEvaluator", | 162 "XPathEvaluator", |
| 163 "XPathResult", | 163 "XPathResult", |
| 164 "XSLTProcessor", | 164 "XSLTProcessor", |
| 165 "addEventListener", | 165 "addEventListener", |
| 166 "alert", | 166 "alert", |
| 167 "atob", | 167 "atob", |
| 168 "btoa", | 168 "btoa", |
| 169 "captureEvents", | |
| 170 "clearInterval", | 169 "clearInterval", |
| 171 "clearTimeout", | 170 "clearTimeout", |
| 172 "clientInformation", | 171 "clientInformation", |
| 173 "console", | 172 "console", |
| 174 "devicePixelRatio", | 173 "devicePixelRatio", |
| 175 "event", | 174 "event", |
| 176 "frames", | 175 "frames", |
| 177 "history", | 176 "history", |
| 178 "innerHeight", | 177 "innerHeight", |
| 179 "innerWidth", | 178 "innerWidth", |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 "onreset", | 246 "onreset", |
| 248 "onresize", | 247 "onresize", |
| 249 "onscroll", | 248 "onscroll", |
| 250 "onsearch", | 249 "onsearch", |
| 251 "onselect", | 250 "onselect", |
| 252 "onsubmit", | 251 "onsubmit", |
| 253 "onunload", | 252 "onunload", |
| 254 "open", | 253 "open", |
| 255 "print", | 254 "print", |
| 256 "prompt", | 255 "prompt", |
| 257 "releaseEvents", | |
| 258 "removeEventListener", | 256 "removeEventListener", |
| 259 "resizeBy", | 257 "resizeBy", |
| 260 "resizeTo", | 258 "resizeTo", |
| 261 "scroll", | 259 "scroll", |
| 262 "scrollBy", | 260 "scrollBy", |
| 263 "scrollTo", | 261 "scrollTo", |
| 264 "setInterval", | 262 "setInterval", |
| 265 "setTimeout", | 263 "setTimeout", |
| 266 "stop" | 264 "stop" |
| 267 ]; | 265 ]; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 297 | 295 |
| 298 log("\n----- tests for getting/setting functions -----\n"); | 296 log("\n----- tests for getting/setting functions -----\n"); |
| 299 | 297 |
| 300 for (var i = 0; i < windowFunctions.length; i++) { //> | 298 for (var i = 0; i < windowFunctions.length; i++) { //> |
| 301 var property = windowFunctions[i]; | 299 var property = windowFunctions[i]; |
| 302 shouldBeTrue("canGet('" + property + "')"); | 300 shouldBeTrue("canGet('" + property + "')"); |
| 303 shouldBeTrue("canSet('" + property + "')"); | 301 shouldBeTrue("canSet('" + property + "')"); |
| 304 } | 302 } |
| 305 } | 303 } |
| 306 </script> | 304 </script> |
| OLD | NEW |