From 641814ad61fe73c4b66b751f0013fef971924a56 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 24 Oct 2024 15:39:20 -0700 Subject: [PATCH] [web] Do not copy invalid images in the Skia test image collection (flutter/engine#56102) A recent Skia commit added a test image that is used to check handling of invalid input. This is causing some web tests to fail because Firefox rejects the image. (see https://skia.googlesource.com/skia.git/+/ff59ce65022d71f883b7e3be146bbd32facadaf8) --- .../src/flutter/lib/web_ui/dev/steps/copy_artifacts_step.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/src/flutter/lib/web_ui/dev/steps/copy_artifacts_step.dart b/engine/src/flutter/lib/web_ui/dev/steps/copy_artifacts_step.dart index 7c7293bbd5..d74134f681 100644 --- a/engine/src/flutter/lib/web_ui/dev/steps/copy_artifacts_step.dart +++ b/engine/src/flutter/lib/web_ui/dev/steps/copy_artifacts_step.dart @@ -137,6 +137,10 @@ class CopyArtifactsStep implements PipelineStep { )); for (final io.File imageFile in testImagesDir.listSync(recursive: true).whereType()) { + // Skip files that are used by Skia to test handling of invalid input. + if (pathlib.basename(imageFile.path).contains('invalid')) { + continue; + } final io.File destination = io.File(pathlib.join( environment.webTestsArtifactsDir.path, 'test_images',