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