@@ -1313,7 +1313,7 @@ describe('ModeBar', function() {
1313
1313
button = selectButton ( gd . _fullLayout . _modeBar , targetBtn ) ;
1314
1314
checkButtonColor ( button , colors [ 0 ] ) ;
1315
1315
} )
1316
- . then ( function ( ) { Plotly . relayout ( gd , 'modebar.color' , colors [ 1 ] ) ; } )
1316
+ . then ( function ( ) { return Plotly . relayout ( gd , 'modebar.color' , colors [ 1 ] ) ; } )
1317
1317
. then ( function ( ) {
1318
1318
checkButtonColor ( button , colors [ 1 ] ) ;
1319
1319
} )
@@ -1353,7 +1353,7 @@ describe('ModeBar', function() {
1353
1353
expect ( style . backgroundColor ) . toBe ( 'rgba(0, 0, 0, 0)' ) ;
1354
1354
expect ( getStyleRule ( ) . rules [ 3 ] . style . backgroundColor ) . toBe ( colors [ 0 ] ) ;
1355
1355
} )
1356
- . then ( function ( ) { Plotly . relayout ( gd , 'modebar.bgcolor' , colors [ 1 ] ) ; } )
1356
+ . then ( function ( ) { return Plotly . relayout ( gd , 'modebar.bgcolor' , colors [ 1 ] ) ; } )
1357
1357
. then ( function ( ) {
1358
1358
style = window . getComputedStyle ( gd . _fullLayout . _modeBar . element ) ;
1359
1359
expect ( style . backgroundColor ) . toBe ( 'rgba(0, 0, 0, 0)' ) ;
@@ -1380,7 +1380,7 @@ describe('ModeBar', function() {
1380
1380
expect ( style . backgroundColor ) . toBe ( colors [ 0 ] ) ;
1381
1381
expect ( getStyleRule ( ) . rules [ 3 ] . style . backgroundColor ) . toBe ( colors [ 0 ] ) ;
1382
1382
} )
1383
- . then ( function ( ) { Plotly . relayout ( gd , 'modebar.bgcolor' , colors [ 1 ] ) ; } )
1383
+ . then ( function ( ) { return Plotly . relayout ( gd , 'modebar.bgcolor' , colors [ 1 ] ) ; } )
1384
1384
. then ( function ( ) {
1385
1385
style = window . getComputedStyle ( gd . _fullLayout . _modeBar . element ) ;
1386
1386
expect ( style . backgroundColor ) . toBe ( colors [ 1 ] ) ;
@@ -1399,7 +1399,7 @@ describe('ModeBar', function() {
1399
1399
size = modeBarEl . getBoundingClientRect ( ) ;
1400
1400
expect ( size . width < size . height ) . toBeTruthy ( ) ;
1401
1401
} )
1402
- . then ( function ( ) { Plotly . relayout ( gd , 'modebar.orientation' , 'h' ) ; } )
1402
+ . then ( function ( ) { return Plotly . relayout ( gd , 'modebar.orientation' , 'h' ) ; } )
1403
1403
. catch ( failTest )
1404
1404
. then ( function ( ) {
1405
1405
size = modeBarEl . getBoundingClientRect ( ) ;
0 commit comments