Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / autoresize / autoresize-with-iframe.html
blobb8d6f557e9e47a1d09cdb7de0cda25b1064f5198
1 <!doctype html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner) {
6 testRunner.enableAutoResizeMode(10, 10, 1000, 1000);
7 testRunner.dumpAsText();
8 testRunner.dumpChildFramesAsText();
9 testRunner.waitUntilDone();
12 function run()
14 var frameWindow = window.frames['frame'];
15 frameWindow.postMessage("shouldBe('document.scrollingElement.scrollWidth', 400)", "*");
16 frameWindow.postMessage("shouldBe('document.scrollingElement.scrollHeight', 200)", "*");
17 frameWindow.postMessage("log('DONE'); if (window.testRunner) testRunner.notifyDone();", "*");
19 </script>
20 </head>
21 <body onload="run()" style="width:400px; height:200px; background-color:yellow;">
22 <iframe name="frame" style="width:100%; height:100%;" src="resources/iframe.html">
23 </iframe>
24 </body>
25 </html>