Skip to content

Commit 5b9cd2a

Browse files
committed
fix hover / click wrapper promise delay
1 parent 739f20f commit 5b9cd2a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/jasmine/tests/gl_plot_interact_test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe('Test gl3d plots', function() {
8383

8484
function _hover() {
8585
mouseEventScatter3d('mouseover');
86-
return delay;
86+
return delay();
8787
}
8888

8989
Plotly.plot(gd, _mock)
@@ -94,7 +94,6 @@ describe('Test gl3d plots', function() {
9494
});
9595
})
9696
.then(_hover)
97-
.then(delay)
9897
.then(function() {
9998
assertHoverText('x: 140.72', 'y: −96.97', 'z: −96.97');
10099
assertEventData('140.72', '−96.97', '−96.97', 0, 2);
@@ -143,7 +142,7 @@ describe('Test gl3d plots', function() {
143142
// with button 1 pressed
144143
function _click() {
145144
mouseEventScatter3d('mouseover', {buttons: 1});
146-
return delay;
145+
return delay();
147146
}
148147

149148
Plotly.plot(gd, _mock)
@@ -154,7 +153,6 @@ describe('Test gl3d plots', function() {
154153
});
155154
})
156155
.then(_click)
157-
.then(delay)
158156
.then(function() {
159157
assertEventData('140.72', '−96.97', '−96.97', 0, 2);
160158
})

0 commit comments

Comments
 (0)