Adding a default case to unblock engine roll. (#149353)

Similar to https://github.com/flutter/flutter/pull/149274
This commit is contained in:
Lau Ching Jun
2024-05-30 15:01:56 -07:00
committed by GitHub
parent 488fb09582
commit 557a959547
2 changed files with 8 additions and 0 deletions

View File

@@ -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);

View File

@@ -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);