Skip to content

Commit 0a6ca10

Browse files
committed
test clickannotation mouse event
1 parent de3801d commit 0a6ca10

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/jasmine/tests/annotations_test.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,11 @@ describe('annotation effects', function() {
11681168
], {}) // turn off the default editable: true
11691169
.then(function() {
11701170
clickData = [];
1171-
gd.on('plotly_clickannotation', function(evt) { clickData.push(evt); });
1171+
gd.on('plotly_clickannotation', function(evt) {
1172+
expect(evt.event).toEqual(jasmine.objectContaining({type: 'click'}));
1173+
delete evt.event;
1174+
clickData.push(evt);
1175+
});
11721176

11731177
gdBB = gd.getBoundingClientRect();
11741178
pos0Head = [gdBB.left + 200, gdBB.top + 200];

0 commit comments

Comments
 (0)