|
26 | 26 | <!-- '/.dockerenv' - is to check if this is running in a codespace -->
|
27 | 27 | <InstallChromeForTests Condition="'$(InstallChromeForTests)' == '' and
|
28 | 28 | ('$(ContinuousIntegrationBuild)' != 'true' or Exists('/.dockerenv')) and
|
29 |
| - '$(Scenario)' == 'WasmTestOnBrowser'">true</InstallChromeForTests> |
| 29 | + '$(Scenario)' == 'WasmTestOnChrome'">true</InstallChromeForTests> |
| 30 | + <InstallFirefoxForTests Condition="'$(InstallFirefoxForTests)' == '' and |
| 31 | + ('$(ContinuousIntegrationBuild)' != 'true' or Exists('/.dockerenv')) and |
| 32 | + '$(Scenario)' == 'WasmTestOnFirefox'">true</InstallFirefoxForTests> |
30 | 33 | <InstallV8ForTests Condition="'$(InstallV8ForTests)' == '' and
|
31 | 34 | ('$(ContinuousIntegrationBuild)' == 'true' or Exists('/.dockerenv')) and
|
32 | 35 | ($([MSBuild]::IsOSPlatform('windows')) or $([MSBuild]::IsOSPlatform('linux')))"
|
|
55 | 58 | <_WasmBrowserPathForTests Condition="'$(BROWSER_PATH_FOR_TESTS)' != ''">$(BROWSER_PATH_FOR_TESTS)</_WasmBrowserPathForTests>
|
56 | 59 | <_WasmBrowserPathForTests Condition="'$(_WasmBrowserPathForTests)' == '' and '$(InstallChromeForTests)' == 'true'">$(ChromeBinaryPath)</_WasmBrowserPathForTests>
|
57 | 60 |
|
| 61 | + <_WasmBrowserPathForTests Condition="'$(BROWSER_PATH_FOR_TESTS)' != ''">$(BROWSER_PATH_FOR_TESTS)</_WasmBrowserPathForTests> |
| 62 | + <_WasmBrowserPathForTests Condition="'$(_WasmBrowserPathForTests)' == '' and '$(InstallFirefoxForTests)' == 'true'">$(FirefoxBinaryPath)</_WasmBrowserPathForTests> |
| 63 | + |
58 | 64 | <_WasmJSEnginePathForTests Condition="'$(V8_PATH_FOR_TESTS)' != ''">$(V8_PATH_FOR_TESTS)</_WasmJSEnginePathForTests>
|
59 | 65 | <_WasmJSEnginePathForTests Condition="'$(_WasmJSEnginePathForTests)' == '' and '$(InstallV8ForTests)' == 'true'">$(V8BinaryPath)</_WasmJSEnginePathForTests>
|
60 | 66 | </PropertyGroup>
|
|
252 | 258 | <RunScriptCommands Include="if [[ "$SCENARIO" == "WasmTestOnNodeJS" || "$SCENARIO" == "wasmtestonnodejs" ]]; then npm ci; fi" />
|
253 | 259 |
|
254 | 260 | <SetScriptCommands Condition="'$(InstallChromeForTests)' == 'true' and '$(ChromeDriverBinaryPath)' != ''" Include="export PREPEND_PATH=$([System.IO.Path]::GetDirectoryName($(ChromeDriverBinaryPath)))" />
|
| 261 | + <SetScriptCommands Condition="'$(InstallFirefoxForTests)' == 'true' and '$(GeckoDriverBinaryPath)' != ''" Include="export PREPEND_PATH=$([System.IO.Path]::GetDirectoryName($(GeckoDriverBinaryPath)))" /> |
255 | 262 | <SetScriptCommands Condition="'$(IsBrowserWasmProject)' == 'true'" Include="export RuntimeIdentifier=browser-wasm" />
|
256 | 263 | </ItemGroup>
|
257 | 264 | <ItemGroup Condition="'$(OS)' == 'Windows_NT'">
|
258 | 265 | <SetScriptCommands Include="if /I [%SCENARIO%]==[WasmTestOnNodeJS] ( set "WasmXHarnessMonoArgs=%WasmXHarnessMonoArgs% --setenv=NPM_MODULES^=$(NodeNpmModuleString)" )" />
|
259 | 266 | <RunScriptCommands Include="if /I [%SCENARIO%]==[WasmTestOnNodeJS] ( call npm ci )" />
|
260 | 267 |
|
261 | 268 | <SetScriptCommands Condition="'$(InstallChromeForTests)' == 'true' and '$(ChromeDriverBinaryPath)' != ''" Include="set PREPEND_PATH=$([System.IO.Path]::GetDirectoryName($(ChromeDriverBinaryPath)))" />
|
| 269 | + <SetScriptCommands Condition="'$(InstallFirefoxForTests)' == 'true' and '$(GeckoDriverBinaryPath)' != ''" Include="set PREPEND_PATH=$([System.IO.Path]::GetDirectoryName($(GeckoDriverBinaryPath)))" /> |
262 | 270 | <SetScriptCommands Condition="'$(IsBrowserWasmProject)' == 'true'" Include="set RuntimeIdentifier=browser-wasm" />
|
263 | 271 | </ItemGroup>
|
264 | 272 | </Target>
|
|
0 commit comments