@@ -173,7 +173,7 @@ describe('MDC-based MatAutocomplete', () => {
173
173
. toEqual ( '' ) ;
174
174
} ) ) ;
175
175
176
- it ( 'should close the panel when the user clicks away via auxilliary button' , waitForAsync ( async ( ) => {
176
+ it ( 'should close the panel when the user clicks away via auxiliary button' , waitForAsync ( async ( ) => {
177
177
dispatchFakeEvent ( input , 'focusin' ) ;
178
178
fixture . detectChanges ( ) ;
179
179
await new Promise ( r => setTimeout ( r ) ) ;
@@ -1607,7 +1607,7 @@ describe('MDC-based MatAutocomplete', () => {
1607
1607
fixture . detectChanges ( ) ;
1608
1608
1609
1609
expect ( event . defaultPrevented )
1610
- . withContext ( `Expected autocompete not to block ${ name } key` )
1610
+ . withContext ( `Expected autocomplete not to block ${ name } key` )
1611
1611
. toBe ( false ) ;
1612
1612
} ) ;
1613
1613
} ) ;
@@ -3438,7 +3438,7 @@ describe('MDC-based MatAutocomplete', () => {
3438
3438
widthFixture . detectChanges ( ) ;
3439
3439
3440
3440
const overlayPane = overlayContainerElement . querySelector ( '.cdk-overlay-pane' ) as HTMLElement ;
3441
- // Firefox, edge return a decimal value for width, so we need to parse and round it to verify
3441
+ // Firefox, Edge return a decimal value for width, so we need to parse and round it to verify
3442
3442
expect ( Math . ceil ( parseFloat ( overlayPane . style . width as string ) ) ) . toBe ( 300 ) ;
3443
3443
3444
3444
widthFixture . componentInstance . trigger . closePanel ( ) ;
@@ -3451,7 +3451,7 @@ describe('MDC-based MatAutocomplete', () => {
3451
3451
widthFixture . componentInstance . trigger . openPanel ( ) ;
3452
3452
widthFixture . detectChanges ( ) ;
3453
3453
3454
- // Firefox, edge return a decimal value for width, so we need to parse and round it to verify
3454
+ // Firefox, Edge return a decimal value for width, so we need to parse and round it to verify
3455
3455
expect ( Math . ceil ( parseFloat ( overlayPane . style . width as string ) ) ) . toBe ( 500 ) ;
3456
3456
} ) ;
3457
3457
@@ -3848,7 +3848,7 @@ describe('MDC-based MatAutocomplete', () => {
3848
3848
dispatchFakeEvent ( document . querySelector ( 'mat-option' ) ! , 'click' ) ;
3849
3849
fixture . detectChanges ( ) ;
3850
3850
3851
- const selectedOption = document . querySelector ( 'mat-option[aria-selected="true"' ) ;
3851
+ const selectedOption = document . querySelector ( 'mat-option[aria-selected="true"] ' ) ;
3852
3852
expect ( selectedOption ) . withContext ( 'Expected an option to be selected.' ) . not . toBeNull ( ) ;
3853
3853
expect ( selectedOption ?. querySelector ( '.mat-pseudo-checkbox.mat-pseudo-checkbox-minimal' ) )
3854
3854
. withContext (
@@ -3874,7 +3874,7 @@ describe('MDC-based MatAutocomplete', () => {
3874
3874
dispatchFakeEvent ( document . querySelector ( 'mat-option' ) ! , 'click' ) ;
3875
3875
fixture . detectChanges ( ) ;
3876
3876
3877
- const selectedOption = document . querySelector ( 'mat-option[aria-selected="true"' ) ;
3877
+ const selectedOption = document . querySelector ( 'mat-option[aria-selected="true"] ' ) ;
3878
3878
expect ( selectedOption ) . withContext ( 'Expected an option to be selected.' ) . not . toBeNull ( ) ;
3879
3879
expect ( document . querySelectorAll ( '.mat-pseudo-checkbox' ) . length ) . toBe ( 0 ) ;
3880
3880
} ) ;
@@ -4210,7 +4210,7 @@ class AutocompleteWithoutPanel {
4210
4210
4211
4211
<mat-autocomplete #auto="matAutocomplete">
4212
4212
@for (group of stateGroups; track group) {
4213
- <mat-optgroup [label]="group.label ">
4213
+ <mat-optgroup [label]="group.title ">
4214
4214
@for (state of group.states; track state) {
4215
4215
<mat-option [value]="state">
4216
4216
<span>{{ state }}</span>
@@ -4249,7 +4249,7 @@ class AutocompleteWithGroups {
4249
4249
<mat-autocomplete #auto="matAutocomplete">
4250
4250
@if (true) {
4251
4251
@for (group of stateGroups; track group) {
4252
- <mat-optgroup [label]="group.label ">
4252
+ <mat-optgroup [label]="group.title ">
4253
4253
@for (state of group.states; track state) {
4254
4254
<mat-option [value]="state">
4255
4255
<span>{{ state }}</span>
0 commit comments