Skip to content

Commit 12baea7

Browse files
committed
added a jasmine test to lock 3595
1 parent 831ca6c commit 12baea7

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test/jasmine/tests/parcoords_test.js

+22
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,28 @@ describe('parcoords initialization tests', function() {
145145
});
146146
});
147147

148+
it('\'line.color\' should convert typed arrays to normal arrays', function() {
149+
var fullTrace = _supply({
150+
dimensions: [{
151+
range: [1, 5],
152+
label: 'A',
153+
values: [1, 4, 3]
154+
}, {
155+
range: [1, 5],
156+
label: 'B',
157+
values: [3, 1.5, 2],
158+
}, {
159+
range: [1, 5],
160+
label: 'C',
161+
values: [2, 4, 1],
162+
}],
163+
line: {
164+
color: new Int32Array([0, 1, 2])
165+
}
166+
});
167+
expect(Array.isArray(fullTrace.line.color) === true).toEqual(true);
168+
});
169+
148170
it('\'domain\' specification should have a default', function() {
149171
var fullTrace = _supply({});
150172
expect(fullTrace.domain).toEqual({x: [0, 1], y: [0, 1]});

0 commit comments

Comments
 (0)