@@ -345,19 +345,19 @@ describe('MdAutocomplete', () => {
345
345
346
346
it ( 'should disable input in view when disabled programmatically' , ( ) => {
347
347
const inputUnderline =
348
- fixture . debugElement . query ( By . css ( '.md -input-underline' ) ) . nativeElement ;
348
+ fixture . debugElement . query ( By . css ( '.mat -input-underline' ) ) . nativeElement ;
349
349
350
350
expect ( input . disabled )
351
351
. toBe ( false , `Expected input to start out enabled in view.` ) ;
352
- expect ( inputUnderline . classList . contains ( 'md -disabled' ) )
352
+ expect ( inputUnderline . classList . contains ( 'mat -disabled' ) )
353
353
. toBe ( false , `Expected input underline to start out with normal styles.` ) ;
354
354
355
355
fixture . componentInstance . stateCtrl . disable ( ) ;
356
356
fixture . detectChanges ( ) ;
357
357
358
358
expect ( input . disabled )
359
359
. toBe ( true , `Expected input to be disabled in view when disabled programmatically.` ) ;
360
- expect ( inputUnderline . classList . contains ( 'md -disabled' ) )
360
+ expect ( inputUnderline . classList . contains ( 'mat -disabled' ) )
361
361
. toBe ( true , `Expected input underline to display disabled styles.` ) ;
362
362
} ) ;
363
363
@@ -469,8 +469,8 @@ describe('MdAutocomplete', () => {
469
469
fixture . detectChanges ( ) ;
470
470
expect ( fixture . componentInstance . trigger . activeOption )
471
471
. toBe ( fixture . componentInstance . options . first , 'Expected first option to be active.' ) ;
472
- expect ( optionEls [ 0 ] . classList ) . toContain ( 'md -active' ) ;
473
- expect ( optionEls [ 1 ] . classList ) . not . toContain ( 'md -active' ) ;
472
+ expect ( optionEls [ 0 ] . classList ) . toContain ( 'mat -active' ) ;
473
+ expect ( optionEls [ 1 ] . classList ) . not . toContain ( 'mat -active' ) ;
474
474
475
475
fixture . componentInstance . trigger . _handleKeydown ( DOWN_ARROW_EVENT ) ;
476
476
@@ -479,8 +479,8 @@ describe('MdAutocomplete', () => {
479
479
expect ( fixture . componentInstance . trigger . activeOption )
480
480
. toBe ( fixture . componentInstance . options . toArray ( ) [ 1 ] ,
481
481
'Expected second option to be active.' ) ;
482
- expect ( optionEls [ 0 ] . classList ) . not . toContain ( 'md -active' ) ;
483
- expect ( optionEls [ 1 ] . classList ) . toContain ( 'md -active' ) ;
482
+ expect ( optionEls [ 0 ] . classList ) . not . toContain ( 'mat -active' ) ;
483
+ expect ( optionEls [ 1 ] . classList ) . toContain ( 'mat -active' ) ;
484
484
} ) ;
485
485
} ) ;
486
486
} ) ;
@@ -498,8 +498,8 @@ describe('MdAutocomplete', () => {
498
498
fixture . detectChanges ( ) ;
499
499
expect ( fixture . componentInstance . trigger . activeOption )
500
500
. toBe ( fixture . componentInstance . options . last , 'Expected last option to be active.' ) ;
501
- expect ( optionEls [ 10 ] . classList ) . toContain ( 'md -active' ) ;
502
- expect ( optionEls [ 0 ] . classList ) . not . toContain ( 'md -active' ) ;
501
+ expect ( optionEls [ 10 ] . classList ) . toContain ( 'mat -active' ) ;
502
+ expect ( optionEls [ 0 ] . classList ) . not . toContain ( 'mat -active' ) ;
503
503
504
504
fixture . componentInstance . trigger . _handleKeydown ( DOWN_ARROW_EVENT ) ;
505
505
@@ -508,8 +508,8 @@ describe('MdAutocomplete', () => {
508
508
expect ( fixture . componentInstance . trigger . activeOption )
509
509
. toBe ( fixture . componentInstance . options . first ,
510
510
'Expected first option to be active.' ) ;
511
- expect ( optionEls [ 0 ] . classList ) . toContain ( 'md -active' ) ;
512
- expect ( optionEls [ 10 ] . classList ) . not . toContain ( 'md -active' ) ;
511
+ expect ( optionEls [ 0 ] . classList ) . toContain ( 'mat -active' ) ;
512
+ expect ( optionEls [ 10 ] . classList ) . not . toContain ( 'mat -active' ) ;
513
513
} ) ;
514
514
} ) ;
515
515
} ) ;
@@ -535,8 +535,8 @@ describe('MdAutocomplete', () => {
535
535
expect ( fixture . componentInstance . trigger . activeOption )
536
536
. toBe ( fixture . componentInstance . options . first ,
537
537
'Expected first option to be active.' ) ;
538
- expect ( optionEls [ 0 ] . classList ) . toContain ( 'md -active' ) ;
539
- expect ( optionEls [ 1 ] . classList ) . not . toContain ( 'md -active' ) ;
538
+ expect ( optionEls [ 0 ] . classList ) . toContain ( 'mat -active' ) ;
539
+ expect ( optionEls [ 1 ] . classList ) . not . toContain ( 'mat -active' ) ;
540
540
} ) ;
541
541
} ) ;
542
542
} ) ;
@@ -607,7 +607,7 @@ describe('MdAutocomplete', () => {
607
607
608
608
it ( 'should scroll to active options below the fold' , async ( ( ) => {
609
609
fixture . whenStable ( ) . then ( ( ) => {
610
- const scrollContainer = document . querySelector ( '.cdk-overlay-pane .md -autocomplete-panel' ) ;
610
+ const scrollContainer = document . querySelector ( '.cdk-overlay-pane .mat -autocomplete-panel' ) ;
611
611
612
612
fixture . componentInstance . trigger . _handleKeydown ( DOWN_ARROW_EVENT ) ;
613
613
fixture . detectChanges ( ) ;
@@ -646,7 +646,7 @@ describe('MdAutocomplete', () => {
646
646
fixture . componentInstance . trigger . openPanel ( ) ;
647
647
fixture . detectChanges ( ) ;
648
648
649
- const panel = fixture . debugElement . query ( By . css ( '.md -autocomplete-panel' ) ) . nativeElement ;
649
+ const panel = fixture . debugElement . query ( By . css ( '.mat -autocomplete-panel' ) ) . nativeElement ;
650
650
651
651
expect ( panel . getAttribute ( 'role' ) )
652
652
. toEqual ( 'listbox' , 'Expected role of the panel to be listbox.' ) ;
@@ -709,7 +709,7 @@ describe('MdAutocomplete', () => {
709
709
fixture . componentInstance . trigger . openPanel ( ) ;
710
710
fixture . detectChanges ( ) ;
711
711
712
- const panel = fixture . debugElement . query ( By . css ( '.md -autocomplete-panel' ) ) . nativeElement ;
712
+ const panel = fixture . debugElement . query ( By . css ( '.mat -autocomplete-panel' ) ) . nativeElement ;
713
713
714
714
expect ( input . getAttribute ( 'aria-owns' ) )
715
715
. toEqual ( panel . getAttribute ( 'id' ) , 'Expected aria-owns to match attached autocomplete.' ) ;
@@ -734,7 +734,7 @@ describe('MdAutocomplete', () => {
734
734
fixture . detectChanges ( ) ;
735
735
736
736
const inputBottom = input . getBoundingClientRect ( ) . bottom ;
737
- const panel = overlayContainerElement . querySelector ( '.md -autocomplete-panel' ) ;
737
+ const panel = overlayContainerElement . querySelector ( '.mat -autocomplete-panel' ) ;
738
738
const panelTop = panel . getBoundingClientRect ( ) . top ;
739
739
740
740
// Panel is offset by 6px in styles so that the underline has room to display.
@@ -753,7 +753,7 @@ describe('MdAutocomplete', () => {
753
753
fixture . detectChanges ( ) ;
754
754
755
755
const inputTop = input . getBoundingClientRect ( ) . top ;
756
- const panel = overlayContainerElement . querySelector ( '.md -autocomplete-panel' ) ;
756
+ const panel = overlayContainerElement . querySelector ( '.mat -autocomplete-panel' ) ;
757
757
const panelBottom = panel . getBoundingClientRect ( ) . bottom ;
758
758
759
759
// Panel is offset by 24px in styles so that the label has room to display.
@@ -777,7 +777,7 @@ describe('MdAutocomplete', () => {
777
777
fixture . detectChanges ( ) ;
778
778
779
779
const inputTop = input . getBoundingClientRect ( ) . top ;
780
- const panel = overlayContainerElement . querySelector ( '.md -autocomplete-panel' ) ;
780
+ const panel = overlayContainerElement . querySelector ( '.mat -autocomplete-panel' ) ;
781
781
const panelBottom = panel . getBoundingClientRect ( ) . bottom ;
782
782
783
783
// Panel is offset by 24px in styles so that the label has room to display.
0 commit comments