]> git.saurik.com Git - apple/javascriptcore.git/blame - bindings/testC.js
JavaScriptCore-466.1.tar.gz
[apple/javascriptcore.git] / bindings / testC.js
CommitLineData
b37bf2e1
A
1myInterface.logMessage ("Starting test");
2
3myInterface.logMessage ("Testing properties:");
4myInterface.logMessage (" myInterface.doubleValue = " + myInterface.doubleValue);
5myInterface.logMessage (" myInterface.intValue = " + myInterface.intValue);
6myInterface.logMessage (" myInterface.stringValue = " + myInterface.stringValue);
7myInterface.logMessage (" myInterface.booleanValue = " + myInterface.booleanValue);
8myInterface.logMessage (" myInterface.nullValue = " + myInterface.nullValue);
9myInterface.logMessage (" myInterface.undefinedValue = " + myInterface.undefinedValue);
10
11myInterface.logMessage ("Testing methods:");
12myInterface.logMessage (" myInterface.setDoubleValue(1234.1234) = " + myInterface.setDoubleValue(1234.1234));
13myInterface.logMessage (" myInterface.setIntValue(5678) = " + myInterface.setIntValue(5678));
14myInterface.logMessage (" myInterface.setStringValue(Goodbye) = " + myInterface.setStringValue('Goodbye'));
15myInterface.logMessage (" myInterface.setBooleanValue(false) = " + myInterface.setBooleanValue(false));
16
17myInterface.logMessage ("Value of properties after calling setters:");
18myInterface.logMessage (" myInterface.getDoubleValue() = " + myInterface.getDoubleValue());
19myInterface.logMessage (" myInterface.getIntValue() = " + myInterface.getIntValue());
20myInterface.logMessage (" myInterface.getStringValue() = " + myInterface.getStringValue());
21myInterface.logMessage (" myInterface.getBooleanValue() = " + myInterface.getBooleanValue());