5 if (window
.testRunner
) {
6 testRunner
.enableAutoResizeMode(10, 10, 1000, 1000);
7 testRunner
.dumpAsText();
8 testRunner
.dumpChildFramesAsText();
9 testRunner
.waitUntilDone();
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();", "*");
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">