4 Sorry for the hackery in this test. Currently, we have no elegant way to
5 catch Java errors and print out an intelligent response.
8 <title>popup window
</title>
10 function print(message
) {
11 var paragraph
= document
.createElement("p");
12 paragraph
.appendChild(document
.createTextNode(message
));
13 document
.getElementById("console").appendChild(paragraph
);
17 if (window
.layoutTestController
) {
18 layoutTestController
.dumpAsText();
22 "applet.field returned " +
23 document
.getElementById('applet').field
26 document
.getElementById('applet').field
+= 1;
28 "incremented applet.field by 1"
32 "applet.field returned " +
33 document
.getElementById('applet').field
37 "applet.method() returned " +
38 document
.getElementById('applet').method()
43 <body onload=
"test();">
44 <applet id='applet'
code=
"TestApplet.class" codebase=
"."></applet>