Skip to content

Commit

Permalink
Check for renderer-specific versions of the tests first. (#38088)
Browse files Browse the repository at this point in the history
* Check for renderer-specific versions of the tests first.

* Fix indentation.
  • Loading branch information
eyebrowsoffire committed Dec 6, 2022
1 parent 75b7f31 commit 86d7cbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/web_ui/dev/test_platform.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
));
}
Expand Down

0 comments on commit 86d7cbf

Please sign in to comment.