Skip to content

Commit 33837f8

Browse files
committed
add test case for event data after zoom (i.e. a non-recalc update)
1 parent cea9455 commit 33837f8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/jasmine/tests/transform_sort_test.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,18 @@ describe('Test sort transform interactions:', function() {
352352
.then(function(eventData) {
353353
assertPt(eventData, 1, 1, 5, 'G');
354354
})
355+
.then(function() {
356+
return Plotly.relayout(gd, 'xaxis.range', [-5, 5]);
357+
})
358+
.then(function() { return hover(gd, 'D'); })
359+
.then(function(eventData) {
360+
assertPt(eventData, 0, 1, 1, 'D');
361+
})
362+
.then(wait)
363+
.then(function() { return click(gd, 'G'); })
364+
.then(function(eventData) {
365+
assertPt(eventData, 1, 1, 5, 'G');
366+
})
355367
.catch(fail)
356368
.then(done);
357369
});

0 commit comments

Comments
 (0)