blob: 9e5c0c5a745834a2bd239d2b015b9877c4cdd02b [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 properties by name -----\n");
// frame by name
shouldBeTrue("canGet('targetWindow.testiframe')");
// element by name
shouldBeFalse("canGet('targetWindow.testimage')");
}
</script>
</body>
</html>