From f7dc6b36b44e20087efdbee98286bdbced83979d Mon Sep 17 00:00:00 2001 From: etienne Date: Tue, 1 May 2018 18:13:52 -0400 Subject: [PATCH] add test for splom with typed array values --- test/jasmine/tests/splom_test.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/jasmine/tests/splom_test.js b/test/jasmine/tests/splom_test.js index 6151eed8668..f44b6368cff 100644 --- a/test/jasmine/tests/splom_test.js +++ b/test/jasmine/tests/splom_test.js @@ -549,6 +549,21 @@ describe('@gl Test splom interactions:', function() { .catch(failTest) .then(done); }); + + it('should work with typed arrays', function(done) { + Plotly.plot(gd, [{ + type: 'splom', + dimensions: [{ + label: 'A', + values: new Int32Array([1, 2, 3]) + }, { + label: 'B', + values: new Int32Array([2, 5, 6]) + }] + }]) + .catch(failTest) + .then(done); + }); }); describe('@gl Test splom hover:', function() {