Removes FlutterMutatorViewTest.sendAccessibilityEvents (flutter/engine#37050)

This test is flaking on every run. Reverting to an older robolectric did not solve the issue.

Related https://github.com/flutter/flutter/issues/114036
This commit is contained in:
Zachary Anderson 2022-10-26 13:30:13 -07:00 committed by GitHub
parent 2145adbc5a
commit ea8fb2e62a

View File

@ -230,30 +230,6 @@ public class FlutterMutatorViewTest {
assertFalse(eventSent);
}
@Test
@Config(
shadows = {
ShadowViewGroup.class,
})
public void sendAccessibilityEvents() {
final FlutterMutatorView wrapperView = new FlutterMutatorView(ctx);
final View embeddedView = mock(View.class);
wrapperView.addView(embeddedView);
when(embeddedView.getImportantForAccessibility())
.thenReturn(View.IMPORTANT_FOR_ACCESSIBILITY_YES);
boolean eventSent =
wrapperView.requestSendAccessibilityEvent(embeddedView, mock(AccessibilityEvent.class));
assertTrue(eventSent);
when(embeddedView.getImportantForAccessibility())
.thenReturn(View.IMPORTANT_FOR_ACCESSIBILITY_AUTO);
eventSent =
wrapperView.requestSendAccessibilityEvent(embeddedView, mock(AccessibilityEvent.class));
assertTrue(eventSent);
}
@Implements(ViewGroup.class)
public static class ShadowViewGroup extends org.robolectric.shadows.ShadowView {
@Implementation