aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2014-05-02 15:11:02 -0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2014-05-21 22:56:13 +0700
commit755444d1a4ca561b53add3d4660864b465cd252d (patch)
treebcaed59360226dd12f45bcae152280d1803237a7
parenta30b438d002a389a523350e2bb0f66b0cf92711d (diff)
A bunch of other tests pass now too.
-rw-r--r--tests/embind/embind.test.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/embind/embind.test.js b/tests/embind/embind.test.js
index 49c70c6d..e9ccc673 100644
--- a/tests/embind/embind.test.js
+++ b/tests/embind/embind.test.js
@@ -1641,7 +1641,7 @@ module({
});
BaseFixture.extend("new-style class inheritance", function() {
- var Empty = cm.AbstractClass.extend("Empty", {});
+ var Empty = cm.AbstractClass.extend("Empty", undefined);
test("can extend, construct, and delete", function() {
var instance = new Empty;
@@ -1649,7 +1649,7 @@ module({
});
test("properties set in constructor are externally visible", function() {
- var HasProperty = cm.AbstractClass.extend("AbstractClass", {
+ var HasProperty = cm.AbstractClass.extend("HasProperty", {
initialize: function(x) {
this.property = x;
}
@@ -1659,10 +1659,8 @@ module({
instance.delete();
});
-/* ENABLE THESE AS THEY PASS
-
test("pass derived object to c++", function() {
- var Implementation = cm.AbstractClass.extend("AbstractClass", {
+ var Implementation = cm.AbstractClass.extend("Implementation", {
abstractMethod: function() {
return "abc";
},
@@ -1674,7 +1672,7 @@ module({
});
test("properties set in constructor are visible in overridden methods", function() {
- var HasProperty = cm.AbstractClass.extend({
+ var HasProperty = cm.AbstractClass.extend("HasProperty", {
initialize: function(x) {
this.x = x;
},
@@ -1688,6 +1686,8 @@ module({
assert.equal("xyz", result);
});
+/* ENABLE THESE AS THEY PASS
+
test("interface methods are externally visible", function() {
var instance = new Empty;
var result = cm.callOptionalMethod(instance, "_123");
@@ -1707,6 +1707,9 @@ module({
instance.delete();
assert.equal("optionaljs_optional_123", result);
});
+
+ test("extend extended class", function() {
+ });
*/
test("instanceof", function() {