Skip to content

Commit 7da2374

Browse files
authored
Update test to not depend on Color.toString() (#7701)
In flutter/engine#55231, the implementation of `Color.toString()` has changed. Update the test to not depend on the exact implementation.
1 parent 54dd888 commit 7da2374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/rfw/test/argument_decoders_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ void main() {
392392
expect(
393393
(tester.widgetList<DecoratedBox>(find.byType(DecoratedBox)).toList()[0].decoration as BoxDecoration).image.toString(),
394394
'DecorationImage(NetworkImage("x-invalid://", scale: 1.0), '
395-
'ColorFilter.mode(Color(0xff8811ff), BlendMode.xor), Alignment.center, scale 1.0, '
395+
'ColorFilter.mode(${const Color(0xff8811ff)}, BlendMode.xor), Alignment.center, scale 1.0, '
396396
'opacity 1.0, FilterQuality.high)',
397397
);
398398

0 commit comments

Comments
 (0)