diff --git a/.ci/flutter_master.version b/.ci/flutter_master.version index bf521921e77c..2efa192e552c 100644 --- a/.ci/flutter_master.version +++ b/.ci/flutter_master.version @@ -1 +1 @@ -c85fa6abf4ffe253109bc5cac762e46d1853d325 +c246ecdf8e8d564410698e86cc07e853269ebab8 \ No newline at end of file diff --git a/packages/flutter_markdown/test/assets/images/golden/image_test/custom_builder_asset_logo.png b/packages/flutter_markdown/test/assets/images/golden/image_test/custom_builder_asset_logo.png index cbf90d457504..a4b3590eb099 100644 Binary files a/packages/flutter_markdown/test/assets/images/golden/image_test/custom_builder_asset_logo.png and b/packages/flutter_markdown/test/assets/images/golden/image_test/custom_builder_asset_logo.png differ diff --git a/packages/flutter_markdown/test/assets/images/golden/image_test/custom_builder_asset_logo_old.png b/packages/flutter_markdown/test/assets/images/golden/image_test/custom_builder_asset_logo_old.png new file mode 100644 index 000000000000..cbf90d457504 Binary files /dev/null and b/packages/flutter_markdown/test/assets/images/golden/image_test/custom_builder_asset_logo_old.png differ diff --git a/packages/flutter_markdown/test/assets/images/golden/image_test/resource_asset_logo.png b/packages/flutter_markdown/test/assets/images/golden/image_test/resource_asset_logo.png index cbf90d457504..a4b3590eb099 100644 Binary files a/packages/flutter_markdown/test/assets/images/golden/image_test/resource_asset_logo.png and b/packages/flutter_markdown/test/assets/images/golden/image_test/resource_asset_logo.png differ diff --git a/packages/flutter_markdown/test/assets/images/golden/image_test/resource_asset_logo_old.png b/packages/flutter_markdown/test/assets/images/golden/image_test/resource_asset_logo_old.png new file mode 100644 index 000000000000..cbf90d457504 Binary files /dev/null and b/packages/flutter_markdown/test/assets/images/golden/image_test/resource_asset_logo_old.png differ diff --git a/packages/flutter_markdown/test/image_test.dart b/packages/flutter_markdown/test/image_test.dart index 00677f1b7284..c6f448eb8a68 100644 --- a/packages/flutter_markdown/test/image_test.dart +++ b/packages/flutter_markdown/test/image_test.dart @@ -13,6 +13,8 @@ import 'package:flutter_test/flutter_test.dart'; import 'image_test_mocks.dart'; import 'utils.dart'; +bool isRunningInStable = io.Platform.environment['CHANNEL'] == 'stable'; + void main() => defineTests(); void defineTests() { @@ -167,8 +169,9 @@ void defineTests() { await expectLater( find.byType(Container), - matchesGoldenFile( - 'assets/images/golden/image_test/resource_asset_logo.png')); + matchesGoldenFile(isRunningInStable + ? 'assets/images/golden/image_test/resource_asset_logo_old.png' + : 'assets/images/golden/image_test/resource_asset_logo.png')); }, skip: kIsWeb, // Goldens are platform-specific. ); @@ -413,8 +416,9 @@ void defineTests() { await expectLater( find.byType(Container), - matchesGoldenFile( - 'assets/images/golden/image_test/custom_builder_asset_logo.png')); + matchesGoldenFile(isRunningInStable + ? 'assets/images/golden/image_test/custom_builder_asset_logo_old.png' + : 'assets/images/golden/image_test/custom_builder_asset_logo.png')); }, skip: kIsWeb, // Goldens are platform-specific. );