@@ -627,9 +627,12 @@ describe('hover with (x|y)period positioning', function() {
627627
628628 it ( '@gl shows hover info for scattergl' , function ( done ) {
629629 Plotly . newPlot ( gd , require ( '@mocks/gl2d_period_positioning.json' ) )
630- . then ( function ( ) { return Plotly . restyle ( gd , 'xperiodalignment' , 'start' ) ; } )
631- . then ( function ( ) { return Plotly . restyle ( gd , 'yperiodalignment' , 'start' ) ; } )
632-
630+ . then ( function ( ) {
631+ return Plotly . restyle ( gd , {
632+ xperiodalignment : 'start' ,
633+ yperiodalignment : 'start'
634+ } ) ;
635+ } )
633636 . then ( function ( ) { _hover ( 100 , 255 ) ; } )
634637 . then ( function ( ) {
635638 assertHoverLabelContent ( {
@@ -645,8 +648,12 @@ describe('hover with (x|y)period positioning', function() {
645648 } ) ;
646649 } )
647650
648- . then ( function ( ) { return Plotly . restyle ( gd , 'xperiodalignment' , 'middle' ) ; } )
649- . then ( function ( ) { return Plotly . restyle ( gd , 'yperiodalignment' , 'middle' ) ; } )
651+ . then ( function ( ) {
652+ return Plotly . restyle ( gd , {
653+ xperiodalignment : 'middle' ,
654+ yperiodalignment : 'middle'
655+ } ) ;
656+ } )
650657 . then ( function ( ) { _hover ( 100 , 255 ) ; } )
651658 . then ( function ( ) { _hover ( 100 , 255 ) ; } )
652659 . then ( function ( ) {
@@ -663,9 +670,12 @@ describe('hover with (x|y)period positioning', function() {
663670 } ) ;
664671 } )
665672
666- . then ( function ( ) { return Plotly . restyle ( gd , 'xperiodalignment' , 'end' ) ; } )
667- . then ( function ( ) { return Plotly . restyle ( gd , 'yperiodalignment' , 'end' ) ; } )
668-
673+ . then ( function ( ) {
674+ return Plotly . restyle ( gd , {
675+ xperiodalignment : 'end' ,
676+ yperiodalignment : 'end'
677+ } ) ;
678+ } )
669679 . then ( function ( ) { _hover ( 100 , 255 ) ; } )
670680 . then ( function ( ) {
671681 assertHoverLabelContent ( {
0 commit comments