testC.js 1.5 KB

12345678910111213141516171819202122
  1. myInterface.logMessage ("Starting test");
  2. myInterface.logMessage ("Testing properties:");
  3. myInterface.logMessage (" myInterface.doubleValue = " + myInterface.doubleValue);
  4. myInterface.logMessage (" myInterface.intValue = " + myInterface.intValue);
  5. myInterface.logMessage (" myInterface.stringValue = " + myInterface.stringValue);
  6. myInterface.logMessage (" myInterface.booleanValue = " + myInterface.booleanValue);
  7. myInterface.logMessage (" myInterface.nullValue = " + myInterface.nullValue);
  8. myInterface.logMessage (" myInterface.undefinedValue = " + myInterface.undefinedValue);
  9. myInterface.logMessage ("Testing methods:");
  10. myInterface.logMessage (" myInterface.setDoubleValue(1234.1234) = " + myInterface.setDoubleValue(1234.1234));
  11. myInterface.logMessage (" myInterface.setIntValue(5678) = " + myInterface.setIntValue(5678));
  12. myInterface.logMessage (" myInterface.setStringValue(Goodbye) = " + myInterface.setStringValue('Goodbye'));
  13. myInterface.logMessage (" myInterface.setBooleanValue(false) = " + myInterface.setBooleanValue(false));
  14. myInterface.logMessage ("Value of properties after calling setters:");
  15. myInterface.logMessage (" myInterface.getDoubleValue() = " + myInterface.getDoubleValue());
  16. myInterface.logMessage (" myInterface.getIntValue() = " + myInterface.getIntValue());
  17. myInterface.logMessage (" myInterface.getStringValue() = " + myInterface.getStringValue());
  18. myInterface.logMessage (" myInterface.getBooleanValue() = " + myInterface.getBooleanValue());