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