31 lines
973 B
HTML
31 lines
973 B
HTML
<!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.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>
|