File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 22 < div class ="md-slider-container "
33 [class.md-slider-sliding] ="isSliding "
44 [class.md-slider-active] ="isActive "
5- [class.md-slider-thumb-label-showing] ="_thumbLabel ">
5+ [class.md-slider-thumb-label-showing] ="thumbLabel ">
66 < div class ="md-slider-track-container ">
77 < div class ="md-slider-track "> </ div >
88 < div class ="md-slider-track md-slider-track-fill "> </ div >
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ describe('MdSlider', () => {
2727 SliderWithStep ,
2828 SliderWithAutoTickInterval ,
2929 SliderWithSetTickInterval ,
30- SliderWithThumbLabel
30+ SliderWithThumbLabel ,
3131 ] ,
3232 } ) ;
3333
@@ -548,11 +548,11 @@ describe('MdSlider', () => {
548548 it ( 'should update the thumb label text on click' , ( ) => {
549549 expect ( thumbLabelTextElement . textContent ) . toBe ( '0' ) ;
550550
551- dispatchClickEvent ( sliderTrackElement , 0.49 ) ;
551+ dispatchClickEvent ( sliderTrackElement , 0.13 ) ;
552552 fixture . detectChanges ( ) ;
553553
554554 // The thumb label text is set to the slider's value. These should always be the same.
555- expect ( thumbLabelTextElement . textContent ) . toBe ( ` ${ sliderInstance . value } ` ) ;
555+ expect ( thumbLabelTextElement . textContent ) . toBe ( '13' ) ;
556556 } ) ;
557557
558558 it ( 'should update the thumb label text on slide' , ( ) => {
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export class MdSlider implements AfterContentInit {
5050 /** Whether or not to show the thumb label. */
5151 @Input ( 'thumb-label' )
5252 @BooleanFieldValue ( )
53- private _thumbLabel : boolean = false ;
53+ thumbLabel : boolean = false ;
5454
5555 /** The miniumum value that the slider can have. */
5656 private _min : number = 0 ;
You can’t perform that action at this time.
0 commit comments