Skip to content

Commit

Permalink
Update banner_theme_test.dart for M3 (flutter#130884)
Browse files Browse the repository at this point in the history
This PR updates unit tests from banner_theme_test.dart for M3 migration.

More info in flutter#127064

Just added some `Material`prefixes.
  • Loading branch information
bleroux authored Jul 20, 2023
1 parent 4cd9fd0 commit ec50831
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/flutter/test/material/banner_theme_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void main() {
]);
});

testWidgets('Passing no MaterialBannerThemeData returns defaults', (WidgetTester tester) async {
testWidgets('Material3 - Passing no MaterialBannerThemeData returns defaults', (WidgetTester tester) async {
const String contentText = 'Content';
final ThemeData theme = ThemeData(useMaterial3: true);
late final ThemeData localizedTheme;
Expand Down Expand Up @@ -115,7 +115,7 @@ void main() {
expect(divider.color, theme.colorScheme.outlineVariant);
});

testWidgets('Passing no MaterialBannerThemeData returns defaults when presented by ScaffoldMessenger', (WidgetTester tester) async {
testWidgets('Material3 - Passing no MaterialBannerThemeData returns defaults when presented by ScaffoldMessenger', (WidgetTester tester) async {
const String contentText = 'Content';
const Key tapTarget = Key('tap-target');
final ThemeData theme = ThemeData(useMaterial3: true);
Expand Down Expand Up @@ -453,7 +453,7 @@ void main() {
// support is deprecated and the APIs are removed, these tests
// can be deleted.

testWidgets('Passing no MaterialBannerThemeData returns defaults', (WidgetTester tester) async {
testWidgets('Material2 - Passing no MaterialBannerThemeData returns defaults', (WidgetTester tester) async {
const String contentText = 'Content';

await tester.pumpWidget(MaterialApp(
Expand Down Expand Up @@ -499,7 +499,7 @@ void main() {
expect(divider.color, null);
});

testWidgets('Passing no MaterialBannerThemeData returns defaults when presented by ScaffoldMessenger', (WidgetTester tester) async {
testWidgets('Material2 - Passing no MaterialBannerThemeData returns defaults when presented by ScaffoldMessenger', (WidgetTester tester) async {
const String contentText = 'Content';
const Key tapTarget = Key('tap-target');

Expand Down

0 comments on commit ec50831

Please sign in to comment.