equal
deleted
inserted
replaced
|
1 <html> |
|
2 <head> |
|
3 <!-- |
|
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. |
|
6 --> |
|
7 |
|
8 <title>popup window</title> |
|
9 <script> |
|
10 function print(message) { |
|
11 var paragraph = document.createElement("p"); |
|
12 paragraph.appendChild(document.createTextNode(message)); |
|
13 document.getElementById("console").appendChild(paragraph); |
|
14 } |
|
15 |
|
16 function test() { |
|
17 if (window.layoutTestController) { |
|
18 layoutTestController.dumpAsText(); |
|
19 } |
|
20 |
|
21 print( |
|
22 "applet.field returned " + |
|
23 document.getElementById('applet').field |
|
24 ); |
|
25 |
|
26 document.getElementById('applet').field += 1; |
|
27 print( |
|
28 "incremented applet.field by 1" |
|
29 ); |
|
30 |
|
31 print( |
|
32 "applet.field returned " + |
|
33 document.getElementById('applet').field |
|
34 ); |
|
35 |
|
36 print( |
|
37 "applet.method() returned " + |
|
38 document.getElementById('applet').method() |
|
39 ); |
|
40 } |
|
41 </script> |
|
42 </head> |
|
43 <body onload="test();"> |
|
44 <applet id='applet' code="TestApplet.class" codebase="."></applet> |
|
45 <div id='console'/> |
|
46 </body> |
|
47 </html> |