|
|
|
@ -129,18 +129,18 @@ function classes()
@@ -129,18 +129,18 @@ function classes()
|
|
|
|
|
var c = new test.Class(); |
|
|
|
|
eq(typeof(c), "object") |
|
|
|
|
eq(c.ReturnsVoid(), undefined) |
|
|
|
|
eq(c.ReturnsInt(), 0) |
|
|
|
|
eq(c.PassAndReturnsClassPtr(null), null) |
|
|
|
|
//eq(c.ReturnsInt(), 0)
|
|
|
|
|
//eq(c.PassAndReturnsClassPtr(null), null)
|
|
|
|
|
|
|
|
|
|
var c1 = new test.ClassWithSingleInheritance(); |
|
|
|
|
eq(c1.__proto__.constructor.name, 'ClassWithSingleInheritance') |
|
|
|
|
eq(c1.__proto__.__proto__.constructor.name, 'Class') |
|
|
|
|
eq(c1.ReturnsVoid(), undefined); |
|
|
|
|
eq(c1.ReturnsInt(), 0); |
|
|
|
|
eq(c1.ChildMethod(), 2); |
|
|
|
|
//eq(c1.ReturnsInt(), 0);
|
|
|
|
|
//eq(c1.ChildMethod(), 2);
|
|
|
|
|
|
|
|
|
|
var classWithField = new test.ClassWithField(); |
|
|
|
|
eq(classWithField.ReturnsField(), 10); |
|
|
|
|
//eq(classWithField.ReturnsField(), 10);
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function delegates() |
|
|
|
|