@@ -4044,6 +4044,7 @@ describe('hovermode: (x|y)unified', function() {
4044
4044
expect ( ax . spikethickness ) . toBe ( 1.5 ) ;
4045
4045
expect ( ax . spikedash ) . toBe ( 'dot' ) ;
4046
4046
expect ( ax . spikecolor ) . toBe ( 'red' ) ;
4047
+ expect ( ax . spikesnap ) . toBe ( 'hovered data' ) ;
4047
4048
expect ( gd . _fullLayout . yaxis . showspike ) . toBeFalse ;
4048
4049
} )
4049
4050
. catch ( failTest )
@@ -4060,6 +4061,7 @@ describe('hovermode: (x|y)unified', function() {
4060
4061
expect ( ax . spikethickness ) . toBe ( 1.5 ) ;
4061
4062
expect ( ax . spikedash ) . toBe ( 'dot' ) ;
4062
4063
expect ( ax . spikecolor ) . toBe ( 'red' ) ;
4064
+ expect ( ax . spikesnap ) . toBe ( 'hovered data' ) ;
4063
4065
expect ( gd . _fullLayout . yaxis . showspike ) . toBeFalse ;
4064
4066
} )
4065
4067
. catch ( failTest )
@@ -4251,17 +4253,12 @@ describe('hovermode: (x|y)unified', function() {
4251
4253
Plotly . newPlot ( gd , mockCopy )
4252
4254
. then ( function ( gd ) {
4253
4255
_hover ( gd , { xval : 1 } ) ;
4254
- // assertLabel({title: 'B', items: ['asdf', 'asdf']});
4256
+
4255
4257
assertSymbol ( [
4256
4258
[ 'rgb(0, 255, 0)' , '0px' , '' ] ,
4257
4259
[ 'rgb(255, 255, 0)' , '5px' , 'rgb(0, 0, 127)' ]
4258
4260
] ) ;
4259
4261
} )
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
- } )
4265
4262
. catch ( failTest )
4266
4263
. then ( done ) ;
4267
4264
} ) ;
0 commit comments