diff options
Diffstat (limited to 'Source/WebCore/manual-tests/resources/liveconnect-security-exception-popup.html')
-rw-r--r-- | Source/WebCore/manual-tests/resources/liveconnect-security-exception-popup.html | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Source/WebCore/manual-tests/resources/liveconnect-security-exception-popup.html b/Source/WebCore/manual-tests/resources/liveconnect-security-exception-popup.html new file mode 100644 index 0000000..cea621b --- /dev/null +++ b/Source/WebCore/manual-tests/resources/liveconnect-security-exception-popup.html @@ -0,0 +1,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> |