@@ -93,21 +93,21 @@ describe('MatSlider', () => {
93
93
} ) ;
94
94
95
95
it ( 'should update the track fill on click' , ( ) => {
96
- expect ( trackFillElement . style . transform ) . toContain ( 'scaleX(0 )' ) ;
96
+ expect ( trackFillElement . style . transform ) . toContain ( 'scale3d(0, 1, 1 )' ) ;
97
97
98
98
dispatchClickEventSequence ( sliderNativeElement , 0.39 ) ;
99
99
fixture . detectChanges ( ) ;
100
100
101
- expect ( trackFillElement . style . transform ) . toContain ( 'scaleX (0.39)' ) ;
101
+ expect ( trackFillElement . style . transform ) . toContain ( 'scale3d (0.39, 1, 1 )' ) ;
102
102
} ) ;
103
103
104
104
it ( 'should update the track fill on slide' , ( ) => {
105
- expect ( trackFillElement . style . transform ) . toContain ( 'scaleX(0 )' ) ;
105
+ expect ( trackFillElement . style . transform ) . toContain ( 'scale3d(0, 1, 1 )' ) ;
106
106
107
107
dispatchSlideEventSequence ( sliderNativeElement , 0 , 0.86 , gestureConfig ) ;
108
108
fixture . detectChanges ( ) ;
109
109
110
- expect ( trackFillElement . style . transform ) . toContain ( 'scaleX (0.86)' ) ;
110
+ expect ( trackFillElement . style . transform ) . toContain ( 'scale3d (0.86, 1, 1 )' ) ;
111
111
} ) ;
112
112
113
113
it ( 'should add and remove the mat-slider-sliding class when sliding' , ( ) => {
@@ -330,15 +330,15 @@ describe('MatSlider', () => {
330
330
fixture . detectChanges ( ) ;
331
331
332
332
// The closest snap is halfway on the slider.
333
- expect ( trackFillElement . style . transform ) . toContain ( 'scaleX (0.5)' ) ;
333
+ expect ( trackFillElement . style . transform ) . toContain ( 'scale3d (0.5, 1, 1 )' ) ;
334
334
} ) ;
335
335
336
336
it ( 'should snap the fill to the nearest value on slide' , ( ) => {
337
337
dispatchSlideEventSequence ( sliderNativeElement , 0 , 0.74 , gestureConfig ) ;
338
338
fixture . detectChanges ( ) ;
339
339
340
340
// The closest snap is at the halfway point on the slider.
341
- expect ( trackFillElement . style . transform ) . toContain ( 'scaleX (0.5)' ) ;
341
+ expect ( trackFillElement . style . transform ) . toContain ( 'scale3d (0.5, 1, 1 )' ) ;
342
342
} ) ;
343
343
344
344
it ( 'should adjust fill and ticks on mouse enter when min changes' , ( ) => {
@@ -348,7 +348,7 @@ describe('MatSlider', () => {
348
348
dispatchMouseenterEvent ( sliderNativeElement ) ;
349
349
fixture . detectChanges ( ) ;
350
350
351
- expect ( trackFillElement . style . transform ) . toContain ( 'scaleX (0.75)' ) ;
351
+ expect ( trackFillElement . style . transform ) . toContain ( 'scale3d (0.75, 1, 1 )' ) ;
352
352
expect ( ticksElement . style . backgroundSize ) . toBe ( '75% 2px' ) ;
353
353
// Make sure it cuts off the last half tick interval.
354
354
expect ( ticksElement . style . transform ) . toContain ( 'translateX(37.5%)' ) ;
@@ -365,7 +365,7 @@ describe('MatSlider', () => {
365
365
dispatchMouseenterEvent ( sliderNativeElement ) ;
366
366
fixture . detectChanges ( ) ;
367
367
368
- expect ( trackFillElement . style . transform ) . toContain ( 'scaleX (0.5)' ) ;
368
+ expect ( trackFillElement . style . transform ) . toContain ( 'scale3d (0.5, 1, 1 )' ) ;
369
369
expect ( ticksElement . style . backgroundSize ) . toBe ( '50% 2px' ) ;
370
370
// Make sure it cuts off the last half tick interval.
371
371
expect ( ticksElement . style . transform ) . toContain ( 'translateX(25%)' ) ;
@@ -440,7 +440,7 @@ describe('MatSlider', () => {
440
440
fixture . detectChanges ( ) ;
441
441
442
442
// The closest step is at 75% of the slider.
443
- expect ( trackFillElement . style . transform ) . toContain ( 'scaleX (0.75)' ) ;
443
+ expect ( trackFillElement . style . transform ) . toContain ( 'scale3d (0.75, 1, 1 )' ) ;
444
444
} ) ;
445
445
446
446
it ( 'should set the correct step value on slide' , ( ) => {
@@ -455,7 +455,7 @@ describe('MatSlider', () => {
455
455
fixture . detectChanges ( ) ;
456
456
457
457
// The closest snap is at the end of the slider.
458
- expect ( trackFillElement . style . transform ) . toContain ( 'scaleX( 1)' ) ;
458
+ expect ( trackFillElement . style . transform ) . toContain ( 'scale3d(1, 1, 1)' ) ;
459
459
} ) ;
460
460
461
461
it ( 'should round the value inside the label based on the provided step' , ( ) => {
@@ -671,15 +671,15 @@ describe('MatSlider', () => {
671
671
672
672
it ( 'should initialize based on bound value' , ( ) => {
673
673
expect ( sliderInstance . value ) . toBe ( 50 ) ;
674
- expect ( trackFillElement . style . transform ) . toContain ( 'scaleX (0.5)' ) ;
674
+ expect ( trackFillElement . style . transform ) . toContain ( 'scale3d (0.5, 1, 1 )' ) ;
675
675
} ) ;
676
676
677
677
it ( 'should update when bound value changes' , ( ) => {
678
678
testComponent . val = 75 ;
679
679
fixture . detectChanges ( ) ;
680
680
681
681
expect ( sliderInstance . value ) . toBe ( 75 ) ;
682
- expect ( trackFillElement . style . transform ) . toContain ( 'scaleX (0.75)' ) ;
682
+ expect ( trackFillElement . style . transform ) . toContain ( 'scale3d (0.75, 1, 1 )' ) ;
683
683
} ) ;
684
684
} ) ;
685
685
@@ -707,7 +707,7 @@ describe('MatSlider', () => {
707
707
} ) ;
708
708
709
709
it ( 'should set the fill to the min value' , ( ) => {
710
- expect ( trackFillElement . style . transform ) . toContain ( 'scaleX(0 )' ) ;
710
+ expect ( trackFillElement . style . transform ) . toContain ( 'scale3d(0, 1, 1 )' ) ;
711
711
} ) ;
712
712
} ) ;
713
713
@@ -735,7 +735,7 @@ describe('MatSlider', () => {
735
735
} ) ;
736
736
737
737
it ( 'should set the fill to the max value' , ( ) => {
738
- expect ( trackFillElement . style . transform ) . toContain ( 'scaleX( 1)' ) ;
738
+ expect ( trackFillElement . style . transform ) . toContain ( 'scale3d(1, 1, 1)' ) ;
739
739
} ) ;
740
740
} ) ;
741
741
@@ -1173,24 +1173,24 @@ describe('MatSlider', () => {
1173
1173
} ) ;
1174
1174
1175
1175
it ( 'should update the track fill on click' , ( ) => {
1176
- expect ( trackFillElement . style . transform ) . toContain ( 'scaleY(0 )' ) ;
1176
+ expect ( trackFillElement . style . transform ) . toContain ( 'scale3d(1, 0, 1 )' ) ;
1177
1177
1178
1178
dispatchClickEventSequence ( sliderNativeElement , 0.39 ) ;
1179
1179
fixture . detectChanges ( ) ;
1180
1180
1181
- expect ( trackFillElement . style . transform ) . toContain ( 'scaleY( 0.61)' ) ;
1181
+ expect ( trackFillElement . style . transform ) . toContain ( 'scale3d(1, 0.61, 1 )' ) ;
1182
1182
} ) ;
1183
1183
1184
1184
it ( 'should update the track fill on click in inverted mode' , ( ) => {
1185
1185
testComponent . invert = true ;
1186
1186
fixture . detectChanges ( ) ;
1187
1187
1188
- expect ( trackFillElement . style . transform ) . toContain ( 'scaleY(0 )' ) ;
1188
+ expect ( trackFillElement . style . transform ) . toContain ( 'scale3d(1, 0, 1 )' ) ;
1189
1189
1190
1190
dispatchClickEventSequence ( sliderNativeElement , 0.39 ) ;
1191
1191
fixture . detectChanges ( ) ;
1192
1192
1193
- expect ( trackFillElement . style . transform ) . toContain ( 'scaleY( 0.39)' ) ;
1193
+ expect ( trackFillElement . style . transform ) . toContain ( 'scale3d(1, 0.39, 1 )' ) ;
1194
1194
} ) ;
1195
1195
1196
1196
it ( 'should have aria-orientation vertical' , ( ) => {
0 commit comments