aboutsummaryrefslogtreecommitdiff
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.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/embind/embind.test.js b/tests/embind/embind.test.js
index b303d51c..2e74c133 100644
--- a/tests/embind/embind.test.js
+++ b/tests/embind/embind.test.js
@@ -1984,6 +1984,15 @@ module({
[6, -12.5, "a3", {x: 1, y: 2, z: 3, w: 4}, cm.EnumClass.TWO, [-1, -2, -3, -4]],
instance.arguments);
});
+
+ test("memory view", function() {
+ function factory(view) {
+ this.view = view;
+ }
+
+ var instance = cm.construct_with_memory_view(factory);
+ assert.equal(10, instance.view.byteLength);
+ });
});
});