Skip to content

Commit

Permalink
Adding a default case to unblock engine roll. (#149353)
Browse files Browse the repository at this point in the history
  • Loading branch information
chingjun authored May 30, 2024
1 parent 488fb09 commit 557a959
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/flutter/test/widgets/custom_painter_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,10 @@ void _defineTests() {
case SemanticsAction.showOnScreen:
case SemanticsAction.tap:
semanticsOwner.performAction(expectedId, action);
// TODO(yjbanov): temporary adding default case until https://github.com/flutter/engine/pull/53094 rolls in (see https://github.com/flutter/flutter/issues/83809)
// ignore: no_default_cases
default:
throw UnimplementedError();
}
expect(performedActions.length, expectedLength);
expect(performedActions.last, action);
Expand Down
4 changes: 4 additions & 0 deletions packages/flutter/test/widgets/semantics_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,10 @@ void main() {
case SemanticsAction.showOnScreen:
case SemanticsAction.tap:
semanticsOwner.performAction(expectedId, action);
// TODO(yjbanov): temporary adding default case until https://github.com/flutter/engine/pull/53094 rolls in (see https://github.com/flutter/flutter/issues/83809)
// ignore: no_default_cases
default:
throw UnimplementedError();
}
expect(performedActions.length, expectedLength);
expect(performedActions.last, action);
Expand Down

0 comments on commit 557a959

Please sign in to comment.