blob: 25f40eb2156b81dc7b5402eecb7f9e359f8d3cb6 [file] [log] [blame]
<head>
<base target="_blank">
<script>
function hashChanged()
{
alert("Test finished due to hash change with a window count of " + testRunner.windowCount());
if (window.testRunner)
testRunner.notifyDone();
}
function runTest()
{
if (window == window.top) {
alert("Test finished in a main frame with a window count of " + testRunner.windowCount());
if (window.testRunner)
testRunner.notifyDone();
}
window.location.href = "#foo";
}
</script>
</head>
<body onhashchange="hashChanged();" onload="runTest();">
This should be in an iframe.<br>
It does a location change to a fragment in the document.<br>
It should scroll in this frame and not open a new window.<br>
<div id="foo">This div is foo!</div>
</body>