File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2510,7 +2510,7 @@ describe('MatMenu', () => {
2510
2510
} ) ,
2511
2511
) ;
2512
2512
2513
- it ( 'should not re- focus a child menu trigger when hovering another trigger' , fakeAsync ( ( ) => {
2513
+ it ( 'should preserve focus on a child menu trigger when hovering another trigger' , fakeAsync ( ( ) => {
2514
2514
dispatchFakeEvent ( instance . rootTriggerEl . nativeElement , 'mousedown' ) ;
2515
2515
instance . rootTriggerEl . nativeElement . click ( ) ;
2516
2516
fixture . detectChanges ( ) ;
@@ -2529,7 +2529,7 @@ describe('MatMenu', () => {
2529
2529
fixture . detectChanges ( ) ;
2530
2530
tick ( 500 ) ;
2531
2531
2532
- expect ( document . activeElement ) . not . toBe (
2532
+ expect ( document . activeElement ) . toBe (
2533
2533
levelOneTrigger ,
2534
2534
'Expected focus not to be returned to the initial trigger.' ,
2535
2535
) ;
You can’t perform that action at this time.
0 commit comments