diff --git a/packages/flutter/test/widgets/custom_painter_test.dart b/packages/flutter/test/widgets/custom_painter_test.dart index c27317e1ca..23d870a988 100644 --- a/packages/flutter/test/widgets/custom_painter_test.dart +++ b/packages/flutter/test/widgets/custom_painter_test.dart @@ -356,6 +356,8 @@ void _defineTests() { final Set allActions = SemanticsAction.values.toSet() ..remove(SemanticsAction.customAction) // customAction is not user-exposed. ..remove(SemanticsAction.showOnScreen) // showOnScreen is not user-exposed + // TODO(LongCatIsLooong): change to `SemanticsAction.scrollToOffset` when available. + // https://github.com/flutter/flutter/issues/159515. ..removeWhere((SemanticsAction action) => action.index == 1 << 23); const int expectedId = 2; @@ -379,6 +381,9 @@ void _defineTests() { final SemanticsOwner semanticsOwner = tester.binding.pipelineOwner.semanticsOwner!; int expectedLength = 1; for (final SemanticsAction action in allActions) { + // TODO(LongCatIsLooong): remove after `SemanticsAction.scrollToOffset` is added to dart:ui. + // https://github.com/flutter/flutter/issues/159515. + // ignore: exhaustive_cases switch (action) { case SemanticsAction.moveCursorBackwardByCharacter: case SemanticsAction.moveCursorForwardByCharacter: diff --git a/packages/flutter/test/widgets/semantics_test.dart b/packages/flutter/test/widgets/semantics_test.dart index 171c04a176..eb89e3be4b 100644 --- a/packages/flutter/test/widgets/semantics_test.dart +++ b/packages/flutter/test/widgets/semantics_test.dart @@ -525,6 +525,8 @@ void main() { ..remove(SemanticsAction.moveCursorBackwardByWord) ..remove(SemanticsAction.customAction) // customAction is not user-exposed. ..remove(SemanticsAction.showOnScreen) // showOnScreen is not user-exposed + // TODO(LongCatIsLooong): change to `SemanticsAction.scrollToOffset` when available. + // https://github.com/flutter/flutter/issues/159515. ..removeWhere((SemanticsAction action) => action.index == 1 << 23); const int expectedId = 1; @@ -543,6 +545,9 @@ void main() { final SemanticsOwner semanticsOwner = tester.binding.pipelineOwner.semanticsOwner!; int expectedLength = 1; for (final SemanticsAction action in allActions) { + // TODO(LongCatIsLooong): remove after `SemanticsAction.scrollToOffset` is added to dart:ui. + // https://github.com/flutter/flutter/issues/159515. + // ignore: exhaustive_cases switch (action) { case SemanticsAction.moveCursorBackwardByCharacter: case SemanticsAction.moveCursorForwardByCharacter: