Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 86d7cbf

Browse files
Check for renderer-specific versions of the tests first. (#38088)
* Check for renderer-specific versions of the tests first. * Fix indentation.
1 parent 75b7f31 commit 86d7cbf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/web_ui/dev/test_platform.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,15 +399,15 @@ class BrowserPlatform extends PlatformPlugin {
399399
shelf.Response buildDirectoryHandler(shelf.Request request) {
400400
File fileInBuild = File(p.join(
401401
env.environment.webUiBuildDir.path,
402+
getBuildDirForRenderer(renderer),
402403
request.url.path,
403404
));
404405

405-
// If we can't find the file in the top-level `build` directory, then it
406-
// may be in the renderer-specific `build` subdirectory.
406+
// If we can't find the file in the renderer-specific `build` subdirectory,
407+
// then it may be in the top-level `build` subdirectory.
407408
if (!fileInBuild.existsSync()) {
408409
fileInBuild = File(p.join(
409410
env.environment.webUiBuildDir.path,
410-
getBuildDirForRenderer(renderer),
411411
request.url.path,
412412
));
413413
}

0 commit comments

Comments
 (0)