mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
2145adbc5a
commit
ea8fb2e62a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user