diff options
author | Chad Austin <chad@imvu.com> | 2013-04-08 13:58:34 -0700 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-18 20:08:05 +0300 |
commit | 927c8a5e44da6c5cc539fa7d4e0a2168dafa3d36 (patch) | |
tree | 19a4f9a1f76e4c65912c1cc1a559a06ecca82061 /tests/embind/embind.test.js | |
parent | f554c2fac03138bf6d3c25180b6dc6771fb80166 (diff) |
Kill validateThis for methods
Diffstat (limited to 'tests/embind/embind.test.js')
-rwxr-xr-x | tests/embind/embind.test.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/embind/embind.test.js b/tests/embind/embind.test.js index 82dbeb25..8155fd11 100755 --- a/tests/embind/embind.test.js +++ b/tests/embind/embind.test.js @@ -143,7 +143,7 @@ module({ var e = assert.throws(cm.BindingError, function() { cm.Derived.prototype.setMember.call(a, "foo"); }); - assert.equal('Derived.setMember incompatible with "this" of type HasTwoBases', e.message); + assert.equal('Expected null or instance of Derived*, got [object Object]', e.message); a.delete(); }); @@ -153,7 +153,7 @@ module({ }); if (typeof INVOKED_FROM_EMSCRIPTEN_TEST_RUNNER === "undefined") { // TODO: Enable this to work in Emscripten runner as well! // got Error: expected: Derived.setMember with invalid "this": undefined, actual: Derived.setMember incompatible with "this" of type Object - assert.equal('Derived.setMember with invalid "this": undefined', e.message); + assert.equal('Expected null or instance of Derived*, got undefined', e.message); } var e = assert.throws(cm.BindingError, function() { @@ -161,14 +161,14 @@ module({ }); if (typeof INVOKED_FROM_EMSCRIPTEN_TEST_RUNNER === "undefined") { // TODO: Enable this to work in Emscripten runner as well! // TODO got 'Derived.setMember incompatible with "this" of type Object' - assert.equal('Derived.setMember with invalid "this": this', e.message); + assert.equal('Expected null or instance of Derived*, got this', e.message); } var e = assert.throws(cm.BindingError, function() { cm.Derived.prototype.setMember.call({}, "foo"); }); if (typeof INVOKED_FROM_EMSCRIPTEN_TEST_RUNNER === "undefined") { // TODO: Enable this to work in Emscripten runner as well! - assert.equal('Derived.setMember incompatible with "this" of type Object', e.message); + assert.equal('Expected null or instance of Derived*, got [object Object]', e.message); } }); |