Index: trunk/LayoutTests/fast/events/open-window-from-another-frame.html |
=================================================================== |
--- trunk/LayoutTests/fast/events/open-window-from-another-frame.html (revision 168578) |
+++ trunk/LayoutTests/fast/events/open-window-from-another-frame.html (working copy) |
@@ -13,7 +13,7 @@ |
function test() |
{ |
var myLink = document.getElementById('link'); |
- var myFrame = window.frames['otherFrame']; |
+ var myFrame = document.getElementById('otherFrame').contentWindow; |
myLink.onclick = myFrame.handleClick; |
if (window.testRunner) { |
var x = myLink.offsetLeft + 2; |
@@ -35,7 +35,7 @@ |
This tests that window.open works across frames.<br> |
To run manually click the link below.<br> |
<a href="resources/greenbox.png" id="link">GreenBox or Success page.</a><br> |
- <iframe src="resources/open-window-from-another-frame-otherFrame.html" name="otherFrame"></iframe> |
+ <iframe src="resources/open-window-from-another-frame-otherFrame.html" id="otherFrame"></iframe> |
<div id="res"></div> |
</body> |
</html> |