This removes 'provideZoneChangeDetection' from menu tests. Change summary:
Many tests set inputs directly. This isn't really how it happens in applications - inputs set from the template automatically mark components for check. When tests set inputs directly like this, they need to call markForCheck manually (or something similar).
One test seems to be calling a public API (CdkContextMenuTrigger.open) that failed to call markForCheck so that was added to the implementation
fakeAsync had an additional timer so I just added flush to make it work.
This removes 'provideZoneChangeDetection' from menu tests. Change summary:
markForCheck
manually (or something similar).CdkContextMenuTrigger.open
) that failed to callmarkForCheck
so that was added to the implementationfakeAsync
had an additional timer so I just addedflush
to make it work.