aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2014-05-02 13:52:01 -0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2014-05-21 22:54:21 +0700
commita1a062d915d244cdbd681cf6eb4a0ca71a8c8a67 (patch)
tree15b052ab7054a343ac0c950ae001c51895e7f0e2 /tests
parentbf85f382d15d5547197869e773288e2bc820fd86 (diff)
can extend, construct, and delete
Diffstat (limited to 'tests')
-rw-r--r--tests/embind/embind.test.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/embind/embind.test.js b/tests/embind/embind.test.js
index 523cb1bc..f2e2b348 100644
--- a/tests/embind/embind.test.js
+++ b/tests/embind/embind.test.js
@@ -1641,16 +1641,17 @@ module({
});
BaseFixture.extend("new-style class inheritance", function() {
- var Empty = cm.AbstractClass.extend({});
- // ENABLE THESE AS THEY PASS
-/*
+ var Empty = cm.AbstractClass.extend("Empty", {});
+
test("can extend, construct, and delete", function() {
var instance = new Empty;
instance.delete();
});
+/* ENABLE THESE AS THEY PASS
+
test("properties set in constructor are externally visible", function() {
- var HasProperty = cm.AbstractClass.extend({
+ var HasProperty = cm.AbstractClass.extend("AbstractClass", {
initialize: function(x) {
this.property = x;
}
@@ -1661,7 +1662,7 @@ module({
});
test("pass derived object to c++", function() {
- var Implementation = cm.AbstractClass.extend({
+ var Implementation = cm.AbstractClass.extend("AbstractClass", {
abstractMethod: function() {
return "abc";
},