Skip to content

Commit cbc98fd

Browse files
committed
plotly#189 updating test case with non-utilized categorylist elements at beginning / end
1 parent f4214cb commit cbc98fd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: test/jasmine/tests/calcdata_test.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,12 @@ describe('calculated data and points', function() {
221221

222222
it('should output categories in explicitly supplied order even if some missing categories were at the beginning or end of categorylist', function() {
223223

224-
// TODO WARNING: THIS CASE *PASSES* BUT THE UNPOPULATED CATEGORIES AT THE EDGES AREN'T RENDERED IN THE DOM
225-
// TODO enhance test cases with selection on the DOM to ensure that all unpopulated ticks are present
224+
// The auto-range feature currently eliminates unutilized category ticks on the left/right edge
226225

227226
Plotly.plot(gd, [{x: ['c','a','e','b','d'], y: [15,11,12,13,14]}], { xaxis: {
228227
type: 'category',
229228
categorymode: 'array',
230-
categorylist: ['s','y','b','x','a','d','z','e','c', 'q', 'k']
229+
categorylist: ['y','b','x','a','d','z','e','c', 'q', 'k']
231230
}});
232231

233232
expect(gd.calcdata[0][0]).toEqual(jasmine.objectContaining({x: 7, y: 15}));

0 commit comments

Comments
 (0)