WebCore/manual-tests/resources/liveconnect-security-exception-popup.html
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 01:32:07 +0300
changeset 2 303757a437d3
parent 0 4f2f89ce4247
permissions -rw-r--r--
Revision: 201037 Kit: 201039

<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>