Skip to content

Commit fd17e6f

Browse files
committed
add test case for hover on traces w/ colorbar w/ set ticktext tickvals
- failing on `master` during appendArrayPointValue when they are less items in 'colorbar.ticktext; or 'colorbar.tickvals' then pointNumber[0]. - test case is for surface, but same happens for other trace types with 2d coords.
1 parent 5da3791 commit fd17e6f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/jasmine/tests/gl_plot_interact_test.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,20 @@ describe('Test gl3d plots', function() {
245245

246246
expect(label.size()).toEqual(1);
247247
expect(label.select('text').text()).toEqual('2');
248+
249+
return Plotly.restyle(gd, {
250+
'colorbar.tickvals': [[25]],
251+
'colorbar.ticktext': [['single tick!']]
252+
});
253+
})
254+
.then(_hover)
255+
.then(function() {
256+
assertEventData(1, 2, 43, 0, [1, 2], {
257+
'hoverinfo': 'y',
258+
'hoverlabel.font.color': 'cyan',
259+
'colorbar.tickvals': undefined,
260+
'colorbar.ticktext': undefined
261+
});
248262
})
249263
.then(done);
250264
});

0 commit comments

Comments
 (0)