1 myInterface.logMessage ("Starting test"); 2 3 myInterface.logMessage ("Testing properties:"); 4 5 myInterface.jsobject = new Function ("arg1","arg2","return arg1 + arg2;"); 6 myInterface.logMessage ("myInterface.jsobject =" + myInterface.jsobject); 7 8 var functionBody = 'return arg1*arg2;' 9 10 myInterface.setJSObject_(new Function ("arg1","arg2",functionBody)); 11 myInterface.logMessage ("myInterface.jsobject =" + myInterface.jsobject); 12 myInterface.callJSObject__(5,6); 13 myInterface.callJSObject__(8,9); 14 15 myInterface.logMessage ("myInterface.setInt_(666) = " + myInterface.setInt_(666)); 16 myInterface.logMessage ("myInterface.getInt() = " + myInterface.getInt()); 17 myInterface.logMessage ("myInterface.getString().foo() = " + myInterface.getString().foo()); 18 myInterface.logMessage ("myInterface.myInt = " + myInterface.myInt); 19 myInterface.logMessage ("setting myInterface.myInt = 777"); 20 myInterface.myInt = 777; 21 myInterface.logMessage ("myInterface.myInt = " + myInterface.myInt); 22 myInterface.logMessage ("myInterface.getMySecondInterface().doubleValue = " + myInterface.getMySecondInterface().doubleValue); 23 myInterface.logMessage ("myInterface.getMySecondInterface() = " + myInterface.getMySecondInterface()); 24 25 myInterface.logMessageWithPrefix ("msg", "prefix"); 26 27 var strings = [ "one", "two", "three" ]; 28 29 myInterface.logMessages (strings);