Skip to content

Commit 900e540

Browse files
authored
Replace ListTile with Chip in the debugCheckHasMaterial control test (#102311)
1 parent 4a72c53 commit 900e540

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/flutter/test/material/debug_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'package:flutter_test/flutter_test.dart';
88

99
void main() {
1010
testWidgets('debugCheckHasMaterial control test', (WidgetTester tester) async {
11-
await tester.pumpWidget(const ListTile());
11+
await tester.pumpWidget(const Chip(label: Text('label')));
1212
final dynamic exception = tester.takeException();
1313
expect(exception, isFlutterError);
1414
final FlutterError error = exception as FlutterError;
@@ -28,7 +28,7 @@ void main() {
2828
error.toStringDeep(),
2929
'FlutterError\n'
3030
' No Material widget found.\n'
31-
' ListTile widgets require a Material widget ancestor.\n'
31+
' Chip widgets require a Material widget ancestor.\n'
3232
' In material design, most widgets are conceptually "printed" on a\n'
3333
" sheet of material. In Flutter's material library, that material\n"
3434
' is represented by the Material widget. It is the Material widget\n'
@@ -39,7 +39,7 @@ void main() {
3939
' one, or use a widget that contains Material itself, such as a\n'
4040
' Card, Dialog, Drawer, or Scaffold.\n'
4141
' The specific widget that could not find a Material ancestor was:\n'
42-
' ListTile\n'
42+
' Chip\n'
4343
' The ancestors of this widget were:\n'
4444
' [root]\n',
4545
);

0 commit comments

Comments
 (0)