| <html> |
| <head> |
| <script> |
| function log(msg) |
| { |
| document.getElementById('console').appendChild(document.createTextNode(msg + "\n")); |
| } |
| |
| function test() |
| { |
| if (window.layoutTestController) |
| layoutTestController.dumpAsText(); |
| |
| log("document.width = " + document.width); |
| log("document.height = " + document.height); |
| } |
| </script> |
| </head> |
| <body onload="test()"> |
| <p>This tests that document.width and document.height cause a layout on use. The test has passed if they have positive values.</p> |
| <pre id="console"></pre> |
| </body> |
| </html> |