[wasm][libs] Fix `WasmAppHost`, and `AppBundle` for library tests (#77719)
authorIlona Tomkowicz <32700855+ilonatommy@users.noreply.github.com>
Tue, 31 Jan 2023 13:53:15 +0000 (14:53 +0100)
committerGitHub <noreply@github.com>
Tue, 31 Jan 2023 13:53:15 +0000 (14:53 +0100)
commitbefeec4bb8e566e87c7f764853ac5cc9302c0776
tree2baef7139d57510fe37420f292a14057cfa0030a
parent4b5029c808f8927c41451ac13870f1fc2a6021d8
[wasm][libs] Fix `WasmAppHost`, and `AppBundle` for library tests (#77719)

* Removed fixed path separator + duplicated `browser-wasm`.

* Working fix.

* Fix for different `OutputPath` conventions.

* Fixing the url printed on the console.

* `ProcessQueryArguments` in test-main.js forces debug to be the 1st arg.

* Removing special case for WBT.

* We cannot skip checking for missing browser-wasm.

* Both runArgs and queryArgs are important when running tests.

* Revert changes in the shipped targets and move them to tests targets.

* Update src/mono/wasm/host/BrowserArguments.cs

Co-authored-by: Ankit Jain <radical@gmail.com>
* Fetch does not work for node<18 => get rid of json.

* Separated runtime args from app args for both hosts.

* Revert 7.0 file.

* Focusing on enabling libs debugging for browser.

* Should have been reverted with dae5d7460c3a23b108e1d141e72c3b0bcdc9d730.

* Fix CI lib tests: avoid referencing undefined properties.

* In all the cases runArgs should be first populated by defaults that can be later overwritten.

* Update src/mono/wasm/test-main.js

Co-authored-by: Ankit Jain <radical@gmail.com>
---------

Co-authored-by: Ankit Jain <radical@gmail.com>
eng/testing/tests.wasm.targets
src/mono/wasm/test-main.js