Skip to content

Commit ec8c3d7

Browse files
committed
Adjust timeouts
1 parent 109ffe5 commit ec8c3d7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/dragelement/unhover.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ unhover.wrapped = function(gd, evt, subplot) {
2323
gd = getGraphDiv(gd);
2424

2525
// Important, clear any queued hovers
26-
throttle.clear(gd._fullLayout._uid + hoverConstants.HOVERID);
26+
if(gd._fullLayout) {
27+
throttle.clear(gd._fullLayout._uid + hoverConstants.HOVERID);
28+
}
2729

2830
unhover.raw(gd, evt, subplot);
2931
};

test/jasmine/tests/gl2d_plot_interact_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ describe('Test gl2d plots', function() {
192192
var mock = require('@mocks/gl2d_10.json');
193193

194194
beforeEach(function() {
195-
jasmine.DEFAULT_TIMEOUT_INTERVAL = 4000;
195+
jasmine.DEFAULT_TIMEOUT_INTERVAL = 5000;
196196
gd = createGraphDiv();
197197
});
198198

@@ -333,7 +333,7 @@ describe('Test gl2d plots', function() {
333333
_mock.data[0].line.width = 5;
334334

335335
Plotly.plot(gd, _mock)
336-
.then(delay(20))
336+
.then(delay(30))
337337
.then(function() {
338338
return Plotly.restyle(gd, 'visible', 'legendonly');
339339
})

0 commit comments

Comments
 (0)