From 7da2374fd81877e3363b090c599ee474f86d31fb Mon Sep 17 00:00:00 2001 From: Lau Ching Jun Date: Wed, 25 Sep 2024 11:07:15 -0700 Subject: [PATCH] Update test to not depend on `Color.toString()` (#7701) In https://github.com/flutter/engine/pull/55231, the implementation of `Color.toString()` has changed. Update the test to not depend on the exact implementation. --- packages/rfw/test/argument_decoders_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rfw/test/argument_decoders_test.dart b/packages/rfw/test/argument_decoders_test.dart index 40ed880aa2ba..7da1e01aae71 100644 --- a/packages/rfw/test/argument_decoders_test.dart +++ b/packages/rfw/test/argument_decoders_test.dart @@ -392,7 +392,7 @@ void main() { expect( (tester.widgetList(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)', );