Skip to content

Commit 3a313e7

Browse files
committed
add missing catch and done in legend_scroll test
1 parent 1694bb4 commit 3a313e7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/jasmine/tests/legend_scroll_test.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ describe('The legend', function() {
326326
Plotly.relayout(gd, 'showlegend', false)
327327
.then(function() {
328328
Plotly.relayout(gd, 'showlegend', true);
329-
329+
})
330+
.then(function() {
330331
legend = getLegend();
331332
scrollBox = getScrollBox();
332333
scrollBar = getScrollBar();
@@ -346,9 +347,10 @@ describe('The legend', function() {
346347
'translate(0,' + -dataScroll + ')');
347348
expect(scrollBar.getAttribute('width')).toBeGreaterThan(0);
348349
expect(scrollBar.getAttribute('height')).toBeGreaterThan(0);
349-
done();
350350
}, DBLCLICKDELAY * 2);
351-
});
351+
})
352+
.catch(failTest)
353+
.then(done);
352354
});
353355

354356
it('should constrain scrolling to the contents', function() {

0 commit comments

Comments
 (0)