blob: 956b3777cb8f35a735a9c29b22ddba0799e1ca2b [file] [log] [blame]
<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>