aboutsummaryrefslogtreecommitdiffstats
path: root/tests/reproducers/simple/JSObjectFromEval/resources/JSObjectFromEval.js
blob: ffa727e70ecb4868dca6b48830b4d13cc8956f66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function testJSObjectFromEval() {
	var applet = document.getElementById("applet");	
	var obj;
	
	applet.output("*** Test JSObject from JS ***");

	applet.output("JS create");
	obj = new Object();
	applet.output("Java set");
	applet.setJSMember(obj, "test", 0);
	applet.output("obj.test = " + obj.test);

	applet.output("*** Test JSObject from Java ***");

	applet.output("Java create");
	obj = applet.newJSObject();
	applet.output("Java set");
	applet.setJSMember(obj, "test", 0);	
	applet.output("obj.test = " + obj.test);

	applet.output("*** APPLET FINISHED ***"); //We're done here
}