Adding a default case to unblock engine roll. (#149353)
Similar to https://github.com/flutter/flutter/pull/149274
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user