aboutsummaryrefslogtreecommitdiffstats
path: root/tests/reproducers/simple/JavascriptGet/resources/Javascript_Get.js
blob: 6db8b53e7b043f7866a990dd72195429e4d29fae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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();
}