@@ -91,7 +91,7 @@ describe('the range slider', function() {
91
91
92
92
slide ( start , sliderY , end , sliderY ) . then ( function ( ) {
93
93
var maskMin = children [ 2 ] ,
94
- handleMin = children [ 5 ] ;
94
+ handleMin = children [ 7 ] ;
95
95
96
96
expect ( gd . layout . xaxis . range ) . toBeCloseToArray ( [ 4 , 49 ] , - 0.5 ) ;
97
97
expect ( maskMin . getAttribute ( 'width' ) ) . toEqual ( String ( diff ) ) ;
@@ -111,7 +111,7 @@ describe('the range slider', function() {
111
111
112
112
slide ( start , sliderY , end , sliderY ) . then ( function ( ) {
113
113
var maskMax = children [ 3 ] ,
114
- handleMax = children [ 6 ] ;
114
+ handleMax = children [ 8 ] ;
115
115
116
116
expect ( gd . layout . xaxis . range ) . toBeCloseToArray ( [ 0 , 32.77 ] , - 0.5 ) ;
117
117
expect ( + maskMax . getAttribute ( 'width' ) ) . toBeCloseTo ( - diff ) ;
@@ -132,7 +132,7 @@ describe('the range slider', function() {
132
132
133
133
slide ( start , sliderY , end , sliderY ) . then ( function ( ) {
134
134
var maskMin = children [ 2 ] ,
135
- handleMin = children [ 5 ] ;
135
+ handleMin = children [ 7 ] ;
136
136
137
137
expect ( gd . layout . xaxis . range ) . toBeCloseToArray ( [ 3.96 , 49 ] , - 0.5 ) ;
138
138
expect ( + maskMin . getAttribute ( 'width' ) ) . toBeCloseTo ( String ( diff ) ) ;
@@ -152,7 +152,7 @@ describe('the range slider', function() {
152
152
153
153
slide ( start , sliderY , end , sliderY ) . then ( function ( ) {
154
154
var maskMax = children [ 3 ] ,
155
- handleMax = children [ 6 ] ;
155
+ handleMax = children [ 8 ] ;
156
156
157
157
expect ( gd . layout . xaxis . range ) . toBeCloseToArray ( [ 0 , 45.04 ] , - 0.5 ) ;
158
158
expect ( + maskMax . getAttribute ( 'width' ) ) . toBeCloseTo ( - diff ) ;
@@ -187,8 +187,8 @@ describe('the range slider', function() {
187
187
Plotly . relayout ( gd , 'xaxis.range' , [ 10 , 20 ] ) . then ( function ( ) {
188
188
var maskMin = children [ 2 ] ,
189
189
maskMax = children [ 3 ] ,
190
- handleMin = children [ 5 ] ,
191
- handleMax = children [ 6 ] ;
190
+ handleMin = children [ 7 ] ,
191
+ handleMax = children [ 8 ] ;
192
192
193
193
expect ( + maskMin . getAttribute ( 'width' ) ) . toBeWithin ( 125 , TOL ) ;
194
194
expect ( + maskMax . getAttribute ( 'width' ) ) . toBeWithin ( 365 , TOL ) ;
@@ -203,8 +203,8 @@ describe('the range slider', function() {
203
203
Plotly . relayout ( gd , 'xaxis.range[0]' , 10 ) . then ( function ( ) {
204
204
var maskMin = children [ 2 ] ,
205
205
maskMax = children [ 3 ] ,
206
- handleMin = children [ 5 ] ,
207
- handleMax = children [ 6 ] ;
206
+ handleMin = children [ 7 ] ,
207
+ handleMax = children [ 8 ] ;
208
208
209
209
expect ( + maskMin . getAttribute ( 'width' ) ) . toBeWithin ( 126 , TOL ) ;
210
210
expect ( + maskMax . getAttribute ( 'width' ) ) . toEqual ( 0 ) ;
0 commit comments