Skip to content

Commit

Permalink
Fix remaining tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gspencergoog committed Jan 10, 2023
1 parent e133d1f commit ad42c72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/flutter/lib/src/widgets/actions.dart
Expand Up @@ -830,7 +830,7 @@ class Actions extends StatefulWidget {
}

// Find the [Action] that handles the given `intent` in the given
// `_ActionsMarker`, and verify it has the right type parameter.
// `_ActionsScope`, and verify it has the right type parameter.
static Action<T>? _castAction<T extends Intent>(_ActionsScope actionsMarker, { T? intent }) {
final Action<Intent>? mappedAction = actionsMarker.actions[intent?.runtimeType ?? T];
if (mappedAction is Action<T>?) {
Expand Down
6 changes: 3 additions & 3 deletions packages/flutter/test/widgets/platform_view_test.dart
Expand Up @@ -2494,7 +2494,7 @@ void main() {

expect(
tester.allWidgets.map((Widget widget) => widget.runtimeType.toString()).toList(),
containsAllInOrder(<String>['PlatformViewLink', 'Focus', '_FocusMarker', 'Semantics', 'PlatformViewSurface']),
containsAllInOrder(<String>['PlatformViewLink', 'Focus', '_FocusInheritedScope', 'Semantics', 'PlatformViewSurface']),
);

expect(createdPlatformViewId, currentViewId + 1);
Expand Down Expand Up @@ -2591,7 +2591,7 @@ void main() {

expect(
tester.allWidgets.map((Widget widget) => widget.runtimeType.toString()).toList(),
containsAllInOrder(<String>['PlatformViewLink', 'Focus', '_FocusMarker', 'Semantics', 'PlatformViewSurface']),
containsAllInOrder(<String>['PlatformViewLink', 'Focus', '_FocusInheritedScope', 'Semantics', 'PlatformViewSurface']),
);

expect(createdPlatformViewId, currentViewId + 1);
Expand Down Expand Up @@ -2686,7 +2686,7 @@ void main() {

expect(
tester.allWidgets.map((Widget widget) => widget.runtimeType.toString()).toList(),
containsAllInOrder(<String>['PlatformViewLink', 'Focus', '_FocusMarker', 'Semantics', 'PlatformViewSurface']),
containsAllInOrder(<String>['PlatformViewLink', 'Focus', '_FocusInheritedScope', 'Semantics', 'PlatformViewSurface']),
);

expect(createdPlatformViewId, currentViewId + 1);
Expand Down

0 comments on commit ad42c72

Please sign in to comment.