Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 20b4b62

Browse files
authored
Removes FlutterMutatorViewTest.sendAccessibilityEvents (#37050)
This test is flaking on every run. Reverting to an older robolectric did not solve the issue. Related flutter/flutter#114036
1 parent 206ef0f commit 20b4b62

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

shell/platform/android/test/io/flutter/embedding/engine/mutatorsstack/FlutterMutatorViewTest.java

-24
Original file line numberDiff line numberDiff line change
@@ -230,30 +230,6 @@ public void ignoreAccessibilityEvents() {
230230
assertFalse(eventSent);
231231
}
232232

233-
@Test
234-
@Config(
235-
shadows = {
236-
ShadowViewGroup.class,
237-
})
238-
public void sendAccessibilityEvents() {
239-
final FlutterMutatorView wrapperView = new FlutterMutatorView(ctx);
240-
241-
final View embeddedView = mock(View.class);
242-
wrapperView.addView(embeddedView);
243-
244-
when(embeddedView.getImportantForAccessibility())
245-
.thenReturn(View.IMPORTANT_FOR_ACCESSIBILITY_YES);
246-
boolean eventSent =
247-
wrapperView.requestSendAccessibilityEvent(embeddedView, mock(AccessibilityEvent.class));
248-
assertTrue(eventSent);
249-
250-
when(embeddedView.getImportantForAccessibility())
251-
.thenReturn(View.IMPORTANT_FOR_ACCESSIBILITY_AUTO);
252-
eventSent =
253-
wrapperView.requestSendAccessibilityEvent(embeddedView, mock(AccessibilityEvent.class));
254-
assertTrue(eventSent);
255-
}
256-
257233
@Implements(ViewGroup.class)
258234
public static class ShadowViewGroup extends org.robolectric.shadows.ShadowView {
259235
@Implementation

0 commit comments

Comments
 (0)