<script> | |
if (window.testRunner) { | |
testRunner.dumpAsText(); | |
testRunner.waitUntilDone(); | |
} | |
function logFailure() { | |
document.getElementById("console").innerHTML = "FAIL"; | |
} | |
function finishTest() { | |
if (window.testRunner) | |
testRunner.notifyDone(); | |
} | |
</script> | |
<div id="console">PASS</div> | |
<embed name="plugin" src="resources/test.testnetscape" type="application/x-non-existent"> | |
<script> | |
if (plugin.testCallback) | |
plugin.testCallback("logFailure"); | |
finishTest(); | |
</script> |