2 if (window
.testRunner
) {
3 testRunner
.dumpAsText();
4 testRunner
.waitUntilDone();
7 function logFailure() {
8 document
.getElementById("console").innerHTML
= "FAIL";
11 function finishTest() {
12 if (window
.testRunner
)
13 testRunner
.notifyDone();
16 <div id=
"console">PASS
</div>
17 <embed name=
"plugin" src=
"resources/test.testnetscape" type=
"application/x-non-existent">
19 if (plugin
.testCallback
)
20 plugin
.testCallback("logFailure");