blob: d1ed64a938df292cc6347eb04bb094d56182b2d1 [file] [log] [blame]
<!doctype html>
<html>
<script src='resources/autoresize-util.js'></script>
<script>
function runTest()
{
if (window.testRunner) {
testRunner.useUnfortunateSynchronousResizeMode();
testRunner.enableAutoResizeMode(10, 10, 1000, 1000);
testRunner.dumpAsText();
}
shouldBe('document.body.clientWidth', 'window.innerWidth');
shouldBe('document.body.clientHeight', 'window.innerHeight');
shouldBe('document.scrollingElement.scrollWidth', 'window.innerWidth');
shouldBe('document.scrollingElement.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>