blob: d5ed7dff7ebbe195d92ddffefbaafe0154871fa1 [file] [log] [blame]
<html>
<head>
<script src="resources/cross-frame-access.js"></script>
</head>
<body>
<iframe src="http://localhost:8000/security/resources/cross-frame-iframe-for-get-test.html" style=""></iframe>
<pre id="console"></pre>
<script>
window.targetWindow = frames[0];
window.onload = function()
{
if (window.testRunner)
testRunner.dumpAsText();
log("\n----- tests for getting/setting the frames array access and the properties associated with it -----\n");
// frames array
shouldBe("targetWindow.frames.length", 1);
shouldBeTrue("canGet('targetWindow.frames[0]')");
shouldBeTrue("canGet('targetWindow[0]')");
}
</script>
</body>
</html>