| 1 |
//dummy javascript class whose instance is passed as JSObject parameter: |
| 2 |
function JSCar(mph, color) { |
| 3 |
this.mph = mph; |
| 4 |
this.color = color; |
| 5 |
} |
| 6 |
|
| 7 |
// the main routine used for all tests: |
| 8 |
function attemptFuncParamTests() { |
| 9 |
var urlArgs = document.URL.split("?"); |
| 10 |
var testParams = urlArgs[1].split(";"); |
| 11 |
|
| 12 |
var func = testParams[0]; |
| 13 |
var value = decodeURIComponent(testParams[1]); |
| 14 |
notice.innerHTML = notice.innerHTML + func + " " + value; |
| 15 |
|
| 16 |
eval('applet.' + func + '(' + value + ')'); |
| 17 |
|
| 18 |
applet.writeAfterTest(); |
| 19 |
} |
| 20 |
|
| 21 |
doTest(attemptFuncParamTests, applet); |