WebCore/manual-tests/resources/liveconnect-security-exception-popup.html
changeset 0 4f2f89ce4247
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/WebCore/manual-tests/resources/liveconnect-security-exception-popup.html	Fri Sep 17 09:02:29 2010 +0300
@@ -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>