Skip to content

Commit 557a959

Browse files
authored
Adding a default case to unblock engine roll. (#149353)
Similar to flutter/flutter#149274
1 parent 488fb09 commit 557a959

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/flutter/test/widgets/custom_painter_test.dart

+4
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,10 @@ void _defineTests() {
401401
case SemanticsAction.showOnScreen:
402402
case SemanticsAction.tap:
403403
semanticsOwner.performAction(expectedId, action);
404+
// TODO(yjbanov): temporary adding default case until https://github.com/flutter/engine/pull/53094 rolls in (see https://github.com/flutter/flutter/issues/83809)
405+
// ignore: no_default_cases
406+
default:
407+
throw UnimplementedError();
404408
}
405409
expect(performedActions.length, expectedLength);
406410
expect(performedActions.last, action);

packages/flutter/test/widgets/semantics_test.dart

+4
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,10 @@ void main() {
571571
case SemanticsAction.showOnScreen:
572572
case SemanticsAction.tap:
573573
semanticsOwner.performAction(expectedId, action);
574+
// TODO(yjbanov): temporary adding default case until https://github.com/flutter/engine/pull/53094 rolls in (see https://github.com/flutter/flutter/issues/83809)
575+
// ignore: no_default_cases
576+
default:
577+
throw UnimplementedError();
574578
}
575579
expect(performedActions.length, expectedLength);
576580
expect(performedActions.last, action);

0 commit comments

Comments
 (0)