@@ -119,7 +119,7 @@ describe('MdSlider', () => {
119
119
// offset relative to the track, subtract the offset on the track fill.
120
120
let thumbPosition = thumbDimensions . left - trackFillDimensions . left ;
121
121
// The track fill width should be equal to the thumb's position.
122
- expect ( Math . round ( trackFillDimensions . width ) ) . toBe ( Math . round ( thumbPosition ) ) ;
122
+ expect ( trackFillDimensions . width ) . toBe ( thumbPosition ) ;
123
123
} ) ;
124
124
125
125
it ( 'should update the thumb position on click' , ( ) => {
@@ -145,7 +145,7 @@ describe('MdSlider', () => {
145
145
// offset relative to the track, subtract the offset on the track fill.
146
146
let thumbPosition = thumbDimensions . left - trackFillDimensions . left ;
147
147
// The track fill width should be equal to the thumb's position.
148
- expect ( Math . round ( trackFillDimensions . width ) ) . toBe ( Math . round ( thumbPosition ) ) ;
148
+ expect ( trackFillDimensions . width ) . toBe ( thumbPosition ) ;
149
149
} ) ;
150
150
151
151
it ( 'should update the thumb position on slide' , ( ) => {
@@ -310,7 +310,7 @@ describe('MdSlider', () => {
310
310
311
311
// The closest snap is halfway on the slider.
312
312
expect ( thumbDimensions . left ) . toBe ( sliderDimensions . width * 0.5 + sliderDimensions . left ) ;
313
- expect ( Math . round ( trackFillDimensions . width ) ) . toBe ( Math . round ( thumbPosition ) ) ;
313
+ expect ( trackFillDimensions . width ) . toBe ( thumbPosition ) ;
314
314
} ) ;
315
315
316
316
it ( 'should snap the thumb and fill to the nearest value on slide' , ( ) => {
@@ -326,7 +326,7 @@ describe('MdSlider', () => {
326
326
327
327
// The closest snap is at the halfway point on the slider.
328
328
expect ( thumbDimensions . left ) . toBe ( sliderDimensions . left + sliderDimensions . width * 0.5 ) ;
329
- expect ( Math . round ( trackFillDimensions . width ) ) . toBe ( Math . round ( thumbPosition ) ) ;
329
+ expect ( trackFillDimensions . width ) . toBe ( thumbPosition ) ;
330
330
331
331
} ) ;
332
332
} ) ;
@@ -411,7 +411,7 @@ describe('MdSlider', () => {
411
411
412
412
// The closest step is at 75% of the slider.
413
413
expect ( thumbDimensions . left ) . toBe ( sliderDimensions . width * 0.75 + sliderDimensions . left ) ;
414
- expect ( Math . round ( trackFillDimensions . width ) ) . toBe ( Math . round ( thumbPosition ) ) ;
414
+ expect ( trackFillDimensions . width ) . toBe ( thumbPosition ) ;
415
415
} ) ;
416
416
417
417
it ( 'should set the correct step value on slide' , ( ) => {
@@ -434,7 +434,7 @@ describe('MdSlider', () => {
434
434
435
435
// The closest snap is at the end of the slider.
436
436
expect ( thumbDimensions . left ) . toBe ( sliderDimensions . width + sliderDimensions . left ) ;
437
- expect ( Math . round ( trackFillDimensions . width ) ) . toBe ( Math . round ( thumbPosition ) ) ;
437
+ expect ( trackFillDimensions . width ) . toBe ( thumbPosition ) ;
438
438
} ) ;
439
439
} ) ;
440
440
0 commit comments