summaryrefslogtreecommitdiff
path: root/tests/embind/embind.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/embind/embind.test.js')
-rw-r--r--tests/embind/embind.test.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/embind/embind.test.js b/tests/embind/embind.test.js
index 2c274014..a1d54a09 100644
--- a/tests/embind/embind.test.js
+++ b/tests/embind/embind.test.js
@@ -1569,8 +1569,8 @@ module({
test("properties set in constructor are externally visible", function() {
var HasProperty = cm.AbstractClass.extend("HasProperty", {
- initialize: function(x) {
- this.__parent.initialize.call(this);
+ __construct: function(x) {
+ this.__parent.__construct.call(this);
this.property = x;
},
abstractMethod: function() {
@@ -1595,8 +1595,8 @@ module({
test("properties set in constructor are visible in overridden methods", function() {
var HasProperty = cm.AbstractClass.extend("HasProperty", {
- initialize: function(x) {
- this.__parent.initialize.call(this);
+ __construct: function(x) {
+ this.__parent.__construct.call(this);
this.x = x;
},
abstractMethod: function() {
@@ -1753,8 +1753,8 @@ module({
test("can extend from C++ class with constructor arguments", function() {
var parent = cm.AbstractClassWithConstructor;
var C = parent.extend("C", {
- initialize: function(x) {
- this.__parent.initialize.call(this, x);
+ __construct: function(x) {
+ this.__parent.__construct.call(this, x);
},
abstractMethod: function() {
return this.concreteMethod();