Index: trunk/LayoutTests/fast/autoresize/autoresize-with-iframe.html |
=================================================================== |
--- trunk/LayoutTests/fast/autoresize/autoresize-with-iframe.html (revision 168578) |
+++ trunk/LayoutTests/fast/autoresize/autoresize-with-iframe.html (working copy) |
@@ -11,7 +11,7 @@ |
function run() |
{ |
- var frameWindow = window.frames['frame']; |
+ 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();", "*"); |
@@ -19,7 +19,7 @@ |
</script> |
</head> |
<body onload="run()" style="width:400px; height:200px; background-color:yellow;"> |
-<iframe name="frame" style="width:100%; height:100%;" src="resources/iframe.html"> |
+<iframe id="frame" style="width:100%; height:100%;" src="resources/iframe.html"> |
</iframe> |
</body> |
</html> |