You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ORPA-pyOpenRPA/Resources/WPy64-3720/python-3.7.2.amd64/Lib/site-packages/comtypes/test/test_jscript.js

18 lines
387 B

var d = new ActiveXObject("TestDispServerLib.TestDispServer");
//WScript.Echo("d.Name");
if (d.Name != "spam, spam, spam")
throw new Error(d.Name);
//WScript.Echo("d.Name = 'foo'");
d.Name = "foo";
//WScript.Echo("d.Name");
if (d.Name != "foo")
throw new Error(d.Name);
//WScript.Echo("d.Eval('1 + 2')");
var result = d.Eval("1 + 2");
if (result != 3)
throw new Error(result);