blob: c1abe078944f3316498317b25fc094878cc69cab [file] [log] [blame]
<!doctype html>
<html>
<head>
<script>
if (window.testRunner) {
testRunner.enableAutoResizeMode(10, 10, 1000, 1000);
testRunner.dumpAsText();
testRunner.dumpChildFramesAsText();
testRunner.waitUntilDone();
}
function run()
{
var frameWindow = document.getElementById("frame").contentWindow;
frameWindow.postMessage("shouldBe('document.body.scrollWidth', 400)", "*");
frameWindow.postMessage("shouldBe('document.body.scrollHeight', 200)", "*");
frameWindow.postMessage("log('DONE'); if (window.testRunner) testRunner.notifyDone();", "*");
}
</script>
</head>
<body onload="run()" style="width:400px; height:200px; background-color:yellow;">
<iframe id="frame" style="width:100%; height:100%;" src="resources/iframe.html">
</iframe>
</body>
</html>