aboutsummaryrefslogtreecommitdiffstats
path: root/tests/reproducers/simple/JavascriptGet/resources/Javascript_Get.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reproducers/simple/JavascriptGet/resources/Javascript_Get.js')
-rw-r--r--tests/reproducers/simple/JavascriptGet/resources/Javascript_Get.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/reproducers/simple/JavascriptGet/resources/Javascript_Get.js b/tests/reproducers/simple/JavascriptGet/resources/Javascript_Get.js
new file mode 100644
index 0000000..6db8b53
--- /dev/null
+++ b/tests/reproducers/simple/JavascriptGet/resources/Javascript_Get.js
@@ -0,0 +1,14 @@
+function doJToJSGetTests(){
+
+ var applet = document.getElementById('jtojsGetApplet');
+
+ var urlArgs = document.URL.split("?");
+ var testParams = urlArgs[1].split(";");
+ var func = testParams[0];
+ var value = decodeURIComponent(testParams[1]);
+
+ eval('jsvar='+value);
+ eval('applet.'+func+'()');
+
+ applet.writeAfterTests();
+}