blob: 6e3771a6a20798425832cb3f89d83c5e64ab61ba [file] [log] [blame]
<!doctype html>
<html>
<script src='resources/autoresize-util.js'></script>
<script>
function runTest()
{
if (window.testRunner) {
testRunner.enableAutoResizeMode(10, 10, 1000, 1000);
testRunner.dumpAsText();
}
shouldBe('document.body.clientWidth', 'window.innerWidth');
shouldBe('document.body.clientHeight', 'window.innerHeight');
shouldBe('document.body.scrollWidth', 'window.innerWidth');
shouldBe('document.body.scrollHeight', 'window.innerHeight');
shouldBe('window.innerWidth', 'window.outerWidth');
shouldBe('window.innerHeight', 'window.outerHeight');
log('DONE');
}
</script>
<body onload="runTest()" style="margin:0; width:900px">
This test only works in when run in dumprendertree as it relies on having auto-resize enabled its window.
<br>
<br>
When it succeeds, there should be a series of PASS messages followed by a DONE message.
<br>
<br>
<div id='result'>
</div>
</body>
</html>