| <script src='resources/autoresize-util.js'></script> |
| testRunner.enableAutoResizeMode(10, 10, 1000, 1000); |
| 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'); |
| <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. |
| When it succeeds, there should be a series of PASS messages followed by a DONE message. |