@@ -91,7 +91,7 @@ describe('the range slider', function() {
9191
9292 slide ( start , sliderY , end , sliderY ) . then ( function ( ) {
9393 var maskMin = children [ 2 ] ,
94- handleMin = children [ 7 ] ;
94+ handleMin = children [ 5 ] ;
9595
9696 expect ( gd . layout . xaxis . range ) . toBeCloseToArray ( [ 4 , 49 ] , - 0.5 ) ;
9797 expect ( maskMin . getAttribute ( 'width' ) ) . toEqual ( String ( diff ) ) ;
@@ -111,7 +111,7 @@ describe('the range slider', function() {
111111
112112 slide ( start , sliderY , end , sliderY ) . then ( function ( ) {
113113 var maskMax = children [ 3 ] ,
114- handleMax = children [ 8 ] ;
114+ handleMax = children [ 6 ] ;
115115
116116 expect ( gd . layout . xaxis . range ) . toBeCloseToArray ( [ 0 , 32.77 ] , - 0.5 ) ;
117117 expect ( + maskMax . getAttribute ( 'width' ) ) . toBeCloseTo ( - diff ) ;
@@ -132,7 +132,7 @@ describe('the range slider', function() {
132132
133133 slide ( start , sliderY , end , sliderY ) . then ( function ( ) {
134134 var maskMin = children [ 2 ] ,
135- handleMin = children [ 7 ] ;
135+ handleMin = children [ 5 ] ;
136136
137137 expect ( gd . layout . xaxis . range ) . toBeCloseToArray ( [ 3.96 , 49 ] , - 0.5 ) ;
138138 expect ( + maskMin . getAttribute ( 'width' ) ) . toBeCloseTo ( String ( diff ) ) ;
@@ -152,7 +152,7 @@ describe('the range slider', function() {
152152
153153 slide ( start , sliderY , end , sliderY ) . then ( function ( ) {
154154 var maskMax = children [ 3 ] ,
155- handleMax = children [ 8 ] ;
155+ handleMax = children [ 6 ] ;
156156
157157 expect ( gd . layout . xaxis . range ) . toBeCloseToArray ( [ 0 , 45.04 ] , - 0.5 ) ;
158158 expect ( + maskMax . getAttribute ( 'width' ) ) . toBeCloseTo ( - diff ) ;
@@ -187,8 +187,8 @@ describe('the range slider', function() {
187187 Plotly . relayout ( gd , 'xaxis.range' , [ 10 , 20 ] ) . then ( function ( ) {
188188 var maskMin = children [ 2 ] ,
189189 maskMax = children [ 3 ] ,
190- handleMin = children [ 7 ] ,
191- handleMax = children [ 8 ] ;
190+ handleMin = children [ 5 ] ,
191+ handleMax = children [ 6 ] ;
192192
193193 expect ( + maskMin . getAttribute ( 'width' ) ) . toBeWithin ( 125 , TOL ) ;
194194 expect ( + maskMax . getAttribute ( 'width' ) ) . toBeWithin ( 365 , TOL ) ;
@@ -203,8 +203,8 @@ describe('the range slider', function() {
203203 Plotly . relayout ( gd , 'xaxis.range[0]' , 10 ) . then ( function ( ) {
204204 var maskMin = children [ 2 ] ,
205205 maskMax = children [ 3 ] ,
206- handleMin = children [ 7 ] ,
207- handleMax = children [ 8 ] ;
206+ handleMin = children [ 5 ] ,
207+ handleMax = children [ 6 ] ;
208208
209209 expect ( + maskMin . getAttribute ( 'width' ) ) . toBeWithin ( 126 , TOL ) ;
210210 expect ( + maskMax . getAttribute ( 'width' ) ) . toEqual ( 0 ) ;
0 commit comments