diff options
author | Chad Austin <chad@imvu.com> | 2013-12-06 16:35:47 -0800 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2014-02-04 16:21:54 +0700 |
commit | 9ba56d2c20fb2a5d5572e6030bd9dc1794fefdd2 (patch) | |
tree | c74d388a3e78122bd42d73016624b1168570f492 /tests/embind/embind.test.js | |
parent | 52e04b489962f1167868aa46eb8325df4b2c9fdf (diff) |
Add a sample for adding mixins to embind
Diffstat (limited to 'tests/embind/embind.test.js')
-rw-r--r-- | tests/embind/embind.test.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/embind/embind.test.js b/tests/embind/embind.test.js index 0976c597..a36c8b08 100644 --- a/tests/embind/embind.test.js +++ b/tests/embind/embind.test.js @@ -1916,6 +1916,15 @@ module({ sh1.delete(); }); }); + + BaseFixture.extend("mixin", function() { + test("can call mixin method", function() { + var a = new cm.DerivedWithMixin(); + assert.instanceof(a, cm.Base); + assert.equal(10, a.get10()); + a.delete(); + }); + }); }); /* global run_all_tests */ |