Skip to content

Commit

Permalink
Update test to not depend on Color.toString() (flutter#7701)
Browse files Browse the repository at this point in the history
In flutter/engine#55231, the implementation of `Color.toString()` has changed. Update the test to not depend on the exact implementation.
  • Loading branch information
chingjun authored Sep 25, 2024
1 parent 54dd888 commit 7da2374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rfw/test/argument_decoders_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ void main() {
expect(
(tester.widgetList<DecoratedBox>(find.byType(DecoratedBox)).toList()[0].decoration as BoxDecoration).image.toString(),
'DecorationImage(NetworkImage("x-invalid://", scale: 1.0), '
'ColorFilter.mode(Color(0xff8811ff), BlendMode.xor), Alignment.center, scale 1.0, '
'ColorFilter.mode(${const Color(0xff8811ff)}, BlendMode.xor), Alignment.center, scale 1.0, '
'opacity 1.0, FilterQuality.high)',
);

Expand Down

0 comments on commit 7da2374

Please sign in to comment.