Skip to content

Commit aefcced

Browse files
committed
refactor: replace red color with black for physical model test
1 parent 1b4c2b9 commit aefcced

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

packages/flutter/test/widgets/physical_model_test.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ import 'package:flutter_test/flutter_test.dart';
1313

1414
import 'widgets_app_tester.dart';
1515

16-
const Color _debugRed = Color(0xFFFF0000);
16+
const Color _debugBlack = Color(0xFF000000);
1717

1818
void main() {
1919
testWidgets('PhysicalModel updates clipBehavior in updateRenderObject', (
2020
WidgetTester tester,
2121
) async {
22-
await tester.pumpWidget(const TestWidgetsApp(home: PhysicalModel(color: _debugRed)));
22+
await tester.pumpWidget(const TestWidgetsApp(home: PhysicalModel(color: _debugBlack)));
2323

2424
final RenderPhysicalModel renderPhysicalModel = tester.allRenderObjects
2525
.whereType<RenderPhysicalModel>()
@@ -29,7 +29,7 @@ void main() {
2929

3030
await tester.pumpWidget(
3131
const TestWidgetsApp(
32-
home: PhysicalModel(clipBehavior: Clip.antiAlias, color: _debugRed),
32+
home: PhysicalModel(clipBehavior: Clip.antiAlias, color: _debugBlack),
3333
),
3434
);
3535

@@ -42,7 +42,7 @@ void main() {
4242
await tester.pumpWidget(
4343
const TestWidgetsApp(
4444
home: PhysicalShape(
45-
color: _debugRed,
45+
color: _debugBlack,
4646
clipper: ShapeBorderClipper(shape: CircleBorder()),
4747
),
4848
),
@@ -58,7 +58,7 @@ void main() {
5858
const TestWidgetsApp(
5959
home: PhysicalShape(
6060
clipBehavior: Clip.antiAlias,
61-
color: _debugRed,
61+
color: _debugBlack,
6262
clipper: ShapeBorderClipper(shape: CircleBorder()),
6363
),
6464
),
@@ -82,19 +82,19 @@ void main() {
8282
child: Row(
8383
children: <Widget>[
8484
PhysicalModel(
85-
color: _debugRed,
85+
color: _debugBlack,
8686
child: Text('A long long long long long long long string'),
8787
),
8888
PhysicalModel(
89-
color: _debugRed,
89+
color: _debugBlack,
9090
child: Text('A long long long long long long long string'),
9191
),
9292
PhysicalModel(
93-
color: _debugRed,
93+
color: _debugBlack,
9494
child: Text('A long long long long long long long string'),
9595
),
9696
PhysicalModel(
97-
color: _debugRed,
97+
color: _debugBlack,
9898
child: Text('A long long long long long long long string'),
9999
),
100100
],

0 commit comments

Comments
 (0)