File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,8 @@ describe('The legend', function() {
326
326
Plotly . relayout ( gd , 'showlegend' , false )
327
327
. then ( function ( ) {
328
328
Plotly . relayout ( gd , 'showlegend' , true ) ;
329
-
329
+ } )
330
+ . then ( function ( ) {
330
331
legend = getLegend ( ) ;
331
332
scrollBox = getScrollBox ( ) ;
332
333
scrollBar = getScrollBar ( ) ;
@@ -346,9 +347,10 @@ describe('The legend', function() {
346
347
'translate(0,' + - dataScroll + ')' ) ;
347
348
expect ( scrollBar . getAttribute ( 'width' ) ) . toBeGreaterThan ( 0 ) ;
348
349
expect ( scrollBar . getAttribute ( 'height' ) ) . toBeGreaterThan ( 0 ) ;
349
- done ( ) ;
350
350
} , DBLCLICKDELAY * 2 ) ;
351
- } ) ;
351
+ } )
352
+ . catch ( failTest )
353
+ . then ( done ) ;
352
354
} ) ;
353
355
354
356
it ( 'should constrain scrolling to the contents' , function ( ) {
You can’t perform that action at this time.
0 commit comments