29 lines
688 B
HTML
29 lines
688 B
HTML
<html>
|
|
<body><p>
|
|
This is some text to force a scrollbar to appear.
|
|
This is some text to force a scrollbar to appear.
|
|
This is some text to force a scrollbar to appear.
|
|
</p>
|
|
<img id="i" onbeforeload="beforeload()" onload="pass()">
|
|
</body>
|
|
<script>
|
|
function beforeload()
|
|
{
|
|
setTimeout(function() {
|
|
var win = window.parent;
|
|
win.document.getElementById("iframe").style.display = "none";
|
|
});
|
|
return true;
|
|
}
|
|
|
|
function pass()
|
|
{
|
|
var win = window.parent;
|
|
win.document.getElementById("iframe").style.display = "";
|
|
win.document.body.appendChild(document.createTextNode("PASSED"));
|
|
if (window.testRunner)
|
|
testRunner.notifyDone();
|
|
}
|
|
</script>
|
|
</html>
|