@@ -173,7 +173,7 @@ describe('MDC-based MatAutocomplete', () => {
173173 . toEqual ( '' ) ;
174174 } ) ) ;
175175
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 ( ) => {
177177 dispatchFakeEvent ( input , 'focusin' ) ;
178178 fixture . detectChanges ( ) ;
179179 await new Promise ( r => setTimeout ( r ) ) ;
@@ -1607,7 +1607,7 @@ describe('MDC-based MatAutocomplete', () => {
16071607 fixture . detectChanges ( ) ;
16081608
16091609 expect ( event . defaultPrevented )
1610- . withContext ( `Expected autocompete not to block ${ name } key` )
1610+ . withContext ( `Expected autocomplete not to block ${ name } key` )
16111611 . toBe ( false ) ;
16121612 } ) ;
16131613 } ) ;
@@ -3438,7 +3438,7 @@ describe('MDC-based MatAutocomplete', () => {
34383438 widthFixture . detectChanges ( ) ;
34393439
34403440 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
34423442 expect ( Math . ceil ( parseFloat ( overlayPane . style . width as string ) ) ) . toBe ( 300 ) ;
34433443
34443444 widthFixture . componentInstance . trigger . closePanel ( ) ;
@@ -3451,7 +3451,7 @@ describe('MDC-based MatAutocomplete', () => {
34513451 widthFixture . componentInstance . trigger . openPanel ( ) ;
34523452 widthFixture . detectChanges ( ) ;
34533453
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
34553455 expect ( Math . ceil ( parseFloat ( overlayPane . style . width as string ) ) ) . toBe ( 500 ) ;
34563456 } ) ;
34573457
@@ -3848,7 +3848,7 @@ describe('MDC-based MatAutocomplete', () => {
38483848 dispatchFakeEvent ( document . querySelector ( 'mat-option' ) ! , 'click' ) ;
38493849 fixture . detectChanges ( ) ;
38503850
3851- const selectedOption = document . querySelector ( 'mat-option[aria-selected="true"' ) ;
3851+ const selectedOption = document . querySelector ( 'mat-option[aria-selected="true"] ' ) ;
38523852 expect ( selectedOption ) . withContext ( 'Expected an option to be selected.' ) . not . toBeNull ( ) ;
38533853 expect ( selectedOption ?. querySelector ( '.mat-pseudo-checkbox.mat-pseudo-checkbox-minimal' ) )
38543854 . withContext (
@@ -3874,7 +3874,7 @@ describe('MDC-based MatAutocomplete', () => {
38743874 dispatchFakeEvent ( document . querySelector ( 'mat-option' ) ! , 'click' ) ;
38753875 fixture . detectChanges ( ) ;
38763876
3877- const selectedOption = document . querySelector ( 'mat-option[aria-selected="true"' ) ;
3877+ const selectedOption = document . querySelector ( 'mat-option[aria-selected="true"] ' ) ;
38783878 expect ( selectedOption ) . withContext ( 'Expected an option to be selected.' ) . not . toBeNull ( ) ;
38793879 expect ( document . querySelectorAll ( '.mat-pseudo-checkbox' ) . length ) . toBe ( 0 ) ;
38803880 } ) ;
@@ -4210,7 +4210,7 @@ class AutocompleteWithoutPanel {
42104210
42114211 <mat-autocomplete #auto="matAutocomplete">
42124212 @for (group of stateGroups; track group) {
4213- <mat-optgroup [label]="group.label ">
4213+ <mat-optgroup [label]="group.title ">
42144214 @for (state of group.states; track state) {
42154215 <mat-option [value]="state">
42164216 <span>{{ state }}</span>
@@ -4249,7 +4249,7 @@ class AutocompleteWithGroups {
42494249 <mat-autocomplete #auto="matAutocomplete">
42504250 @if (true) {
42514251 @for (group of stateGroups; track group) {
4252- <mat-optgroup [label]="group.label ">
4252+ <mat-optgroup [label]="group.title ">
42534253 @for (state of group.states; track state) {
42544254 <mat-option [value]="state">
42554255 <span>{{ state }}</span>
0 commit comments