File tree 3 files changed +1
-16
lines changed
3 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import {
13
13
Directive ,
14
14
ElementRef ,
15
15
Inject ,
16
- Input ,
17
16
OnDestroy ,
18
17
Optional ,
19
18
QueryList ,
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import {MatMenuBar} from './menubar';
8
8
9
9
describe ( 'MatMenuBar' , ( ) => {
10
10
let fixture : ComponentFixture < SimpleMatMenuBar > ;
11
- let matMenubar : MatMenuBar ;
12
11
let nativeMatMenubar : HTMLElement ;
13
12
14
13
beforeEach ( waitForAsync ( ( ) => {
@@ -22,7 +21,6 @@ describe('MatMenuBar', () => {
22
21
fixture = TestBed . createComponent ( SimpleMatMenuBar ) ;
23
22
fixture . detectChanges ( ) ;
24
23
25
- matMenubar = fixture . componentInstance . matMenubar ;
26
24
nativeMatMenubar = fixture . componentInstance . nativeMatMenubar . nativeElement ;
27
25
} ) ;
28
26
@@ -39,15 +37,6 @@ describe('MatMenuBar', () => {
39
37
expect ( nativeMatMenubar . getAttribute ( 'tabindex' ) ) . toBe ( '0' ) ;
40
38
} ) ;
41
39
42
- it ( 'should toggle aria-orientation attribute' , ( ) => {
43
- expect ( nativeMatMenubar . getAttribute ( 'aria-orientation' ) ) . toBe ( 'horizontal' ) ;
44
-
45
- matMenubar . orientation = 'vertical' ;
46
- fixture . detectChanges ( ) ;
47
-
48
- expect ( nativeMatMenubar . getAttribute ( 'aria-orientation' ) ) . toBe ( 'vertical' ) ;
49
- } ) ;
50
-
51
40
it ( 'should toggle focused items on left/right click' , ( ) => {
52
41
nativeMatMenubar . focus ( ) ;
53
42
Original file line number Diff line number Diff line change @@ -27,10 +27,7 @@ import {
27
27
encapsulation : ViewEncapsulation . None ,
28
28
changeDetection : ChangeDetectionStrategy . OnPush ,
29
29
host : {
30
- 'role' : 'menubar' ,
31
- 'class' : 'cdk-menu-bar mat-menubar' ,
32
- 'tabindex' : '0' ,
33
- '[attr.aria-orientation]' : 'orientation' ,
30
+ '[class.mat-menubar]' : 'true' ,
34
31
} ,
35
32
providers : [
36
33
{ provide : CdkMenuGroup , useExisting : MatMenuBar } ,
You can’t perform that action at this time.
0 commit comments