diff options
Diffstat (limited to 'tests/reproducers/simple/JSToJFuncResol/resources')
3 files changed, 59 insertions, 0 deletions
diff --git a/tests/reproducers/simple/JSToJFuncResol/resources/JSToJFuncResol.html b/tests/reproducers/simple/JSToJFuncResol/resources/JSToJFuncResol.html new file mode 100644 index 0000000..60f6243 --- /dev/null +++ b/tests/reproducers/simple/JSToJFuncResol/resources/JSToJFuncResol.html @@ -0,0 +1,25 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html lang="en-US"> + <head> + <title>JavaScript to Java LiveConnect - FuncResol values from applet</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + + <script language="JavaScript" src="JSToJava_FuncResol.js"></script> + + </head> + <body> + + <h2> The JSToJFuncResol html page</h2> + + <applet code="JSToJFuncResol" width="1000" height="100" id="jstojFuncResolApplet" MAYSCRIPT> + <param name="jnlp_href" value="jstoj-funcresol.jnlp"> + </applet> + + <script type="text/javascript"> + + doFuncResolTests(); + + </script> + + </body> +</html> diff --git a/tests/reproducers/simple/JSToJFuncResol/resources/JSToJava_FuncResol.js b/tests/reproducers/simple/JSToJFuncResol/resources/JSToJava_FuncResol.js new file mode 100644 index 0000000..e0ee52c --- /dev/null +++ b/tests/reproducers/simple/JSToJFuncResol/resources/JSToJava_FuncResol.js @@ -0,0 +1,11 @@ +function doFuncResolTests(){ + + var urlArgs = document.URL.split("?"); + var testParams = urlArgs[1].split(";"); + var applet = document.getElementById('jstojFuncResolApplet'); + var func = testParams[0]; + var value = decodeURIComponent(testParams[1]); + + eval('applet.' + func + '(' + value + ')'); + applet.writeAfterTests(); +} diff --git a/tests/reproducers/simple/JSToJFuncResol/resources/jstoj-funcresol.jnlp b/tests/reproducers/simple/JSToJFuncResol/resources/jstoj-funcresol.jnlp new file mode 100644 index 0000000..81b029a --- /dev/null +++ b/tests/reproducers/simple/JSToJFuncResol/resources/jstoj-funcresol.jnlp @@ -0,0 +1,23 @@ + +<?xml version="1.0" encoding="UTF-8"?> +<jnlp spec="1.0+" codebase="" href="jstoj-funcresol.jnlp"> + <information> + <title>JavaScript to Java LiveConnect - FuncResol</title> + <vendor>IcedTea</vendor> + <homepage href="http://icedtea.classpath.org/wiki/IcedTea-Web#Testing_IcedTea-Web"/> + <description>LiveConnect - tests for overloaded function resolution when calling Java functions from JS.</description> + </information> + <resources> + <!-- Application Resources --> + <j2se version="1.6+" + href="http://java.sun.com/products/autodl/j2se"/> + <jar href="JSToJFuncResol.jar" main="true" /> + + </resources> + <applet-desc + name="JS to J FuncResol" + main-class="JSToJFuncResol" + width="1000" + height="100"> + </applet-desc> +</jnlp> |