From 3b68ad4bfeabc3e2c2e8970ec967d570dad567d3 Mon Sep 17 00:00:00 2001 From: Jackson Gardner Date: Tue, 6 Dec 2022 08:49:50 -0800 Subject: [PATCH] Check for renderer-specific versions of the tests first. (flutter/engine#38088) * Check for renderer-specific versions of the tests first. * Fix indentation. --- engine/src/flutter/lib/web_ui/dev/test_platform.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/src/flutter/lib/web_ui/dev/test_platform.dart b/engine/src/flutter/lib/web_ui/dev/test_platform.dart index dbb29c81e1..007670b78b 100644 --- a/engine/src/flutter/lib/web_ui/dev/test_platform.dart +++ b/engine/src/flutter/lib/web_ui/dev/test_platform.dart @@ -399,15 +399,15 @@ class BrowserPlatform extends PlatformPlugin { shelf.Response buildDirectoryHandler(shelf.Request request) { File fileInBuild = File(p.join( env.environment.webUiBuildDir.path, + getBuildDirForRenderer(renderer), request.url.path, )); - // If we can't find the file in the top-level `build` directory, then it - // may be in the renderer-specific `build` subdirectory. + // If we can't find the file in the renderer-specific `build` subdirectory, + // then it may be in the top-level `build` subdirectory. if (!fileInBuild.existsSync()) { fileInBuild = File(p.join( env.environment.webUiBuildDir.path, - getBuildDirForRenderer(renderer), request.url.path, )); }