blob: bd89a3e179662c96dac98809a6ed3783582c65b2 [file] [log] [blame]
<html>
<head>
<script>
function test() {
var tempConsole = document.getElementById('console');
var console = window.opener.document.getElementById('console');
// On the first pass, we'll temporarily set the output to
// to failure, and then go(0). On the second pass,
// we set the output back to success and close the window.
if (window.opener.i == 0) {
tempConsole.innerHTML = 'Test Failed';
console.innerHTML = tempConsole.innerHTML;
window.opener.i = 1;
history.go(0);
} else {
console.innerHTML = tempConsole.innerHTML;
window.opener.i = 2;
window.close();
}
}
function closed()
{
if (window.opener.i == 2)
if (window.testRunner)
opener.setTimeout("testRunner.notifyDone()", 0);
}
</script>
</head>
<body onload="test()" onunload="closed()">
<div id="console">Test Passed</div>
</body>
</html>