@@ -4044,6 +4044,7 @@ describe('hovermode: (x|y)unified', function() {
40444044 expect ( ax . spikethickness ) . toBe ( 1.5 ) ;
40454045 expect ( ax . spikedash ) . toBe ( 'dot' ) ;
40464046 expect ( ax . spikecolor ) . toBe ( 'red' ) ;
4047+ expect ( ax . spikesnap ) . toBe ( 'hovered data' ) ;
40474048 expect ( gd . _fullLayout . yaxis . showspike ) . toBeFalse ;
40484049 } )
40494050 . catch ( failTest )
@@ -4060,6 +4061,7 @@ describe('hovermode: (x|y)unified', function() {
40604061 expect ( ax . spikethickness ) . toBe ( 1.5 ) ;
40614062 expect ( ax . spikedash ) . toBe ( 'dot' ) ;
40624063 expect ( ax . spikecolor ) . toBe ( 'red' ) ;
4064+ expect ( ax . spikesnap ) . toBe ( 'hovered data' ) ;
40634065 expect ( gd . _fullLayout . yaxis . showspike ) . toBeFalse ;
40644066 } )
40654067 . catch ( failTest )
@@ -4251,17 +4253,12 @@ describe('hovermode: (x|y)unified', function() {
42514253 Plotly . newPlot ( gd , mockCopy )
42524254 . then ( function ( gd ) {
42534255 _hover ( gd , { xval : 1 } ) ;
4254- // assertLabel({title: 'B', items: ['asdf', 'asdf']});
4256+
42554257 assertSymbol ( [
42564258 [ 'rgb(0, 255, 0)' , '0px' , '' ] ,
42574259 [ 'rgb(255, 255, 0)' , '5px' , 'rgb(0, 0, 127)' ]
42584260 ] ) ;
42594261 } )
4260- . then ( function ( ) {
4261- _hover ( gd , { xval : 4 } ) ;
4262- // assertLabel({title: 'E', items: ['asdf', 'asdf']});
4263- // assertSymbol([['rgb(168, 140, 33)', '4px', 'rgb(111, 193, 115)']]);
4264- } )
42654262 . catch ( failTest )
42664263 . then ( done ) ;
42674264 } ) ;
0 commit comments