OLD | NEW |
1 <script> | 1 <script> |
2 if (window.testRunner) { | 2 if (window.testRunner) { |
3 testRunner.dumpAsText(); | 3 testRunner.dumpAsText(); |
4 testRunner.waitUntilDone(); | 4 testRunner.waitUntilDone(); |
5 } | 5 } |
6 | 6 |
7 function logFailure() { | 7 function logFailure() { |
8 document.getElementById("console").innerHTML = "FAIL"; | 8 document.getElementById("console").innerHTML = "FAIL"; |
9 } | 9 } |
10 | 10 |
11 function finishTest() { | 11 function finishTest() { |
12 if (window.testRunner) | 12 if (window.testRunner) |
13 testRunner.notifyDone(); | 13 testRunner.notifyDone(); |
14 } | 14 } |
15 </script> | 15 </script> |
16 <div id="console">PASS</div> | 16 <div id="console">PASS</div> |
17 <embed name="plugin" src="resources/test.testnetscape" type="application/x-non-e
xistent"> | 17 <embed name="plugin" src="resources/test.blinktestplugin" type="application/x-no
n-existent"> |
18 <script> | 18 <script> |
19 if (plugin.testCallback) | 19 if (plugin.postMessage) |
20 plugin.testCallback("logFailure"); | 20 logFailure(); |
21 finishTest(); | 21 finishTest(); |
22 </script> | 22 </script> |
OLD | NEW |