summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/manual-tests/resources/liveconnect-security-exception-popup.html
blob: cea621bf9c7b931007ee04bb46b65d8d6aa83784 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<html>
<head>
<!--
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>
<script>
function print(message) {
	var paragraph = document.createElement("p");
	paragraph.appendChild(document.createTextNode(message));
	document.getElementById("console").appendChild(paragraph);
}

function test() {
	if (window.layoutTestController) {
		layoutTestController.dumpAsText();
	}

    print(
        "applet.field returned " + 
        document.getElementById('applet').field
        );

    document.getElementById('applet').field += 1;
    print(
        "incremented applet.field by 1"
        );
        
    print(
        "applet.field returned " + 
        document.getElementById('applet').field
        );

    print(
        "applet.method() returned " + 
        document.getElementById('applet').method()
        );
}
</script>
</head>
<body onload="test();">
<applet id='applet' code="TestApplet.class" codebase="."></applet>
<div id='console'/>
</body>
</html>