From 671b3bc00f1d08ea0fc79ca651b2d26a63c68498 Mon Sep 17 00:00:00 2001 From: Lau Ching Jun Date: Wed, 25 Sep 2024 10:49:29 -0700 Subject: [PATCH] Update test to not depend on `Color.toString()` 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)', );