| Sorry for the hackery in this test. Currently, we have no elegant way to |
| catch Java errors and print out an intelligent response. |
| <title>popup window</title> |
| function print(message) { |
| var paragraph = document.createElement("p"); |
| paragraph.appendChild(document.createTextNode(message)); |
| document.getElementById("console").appendChild(paragraph); |
| if (window.layoutTestController) { |
| layoutTestController.dumpAsText(); |
| "applet.field returned " + |
| document.getElementById('applet').field |
| document.getElementById('applet').field += 1; |
| "incremented applet.field by 1" |
| "applet.field returned " + |
| document.getElementById('applet').field |
| "applet.method() returned " + |
| document.getElementById('applet').method() |
| <applet id='applet' code="TestApplet.class" codebase="."></applet> |