Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/wasm/test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ SPDX-License-Identifier: AGPL-3.0-only
* install [webpack](https://rustwasm.github.io/wasm-pack/installer/)
* `wasm-pack build --out-name index --release --target web --features=wasmtest`
* `python3 src/wasm/test/serve.py`
* http://localhost:8080/src/wasm/test/test.html
* http://127.0.0.1:8080/src/wasm/test/test.html

## Test wasm build with no workers

* install [webpack](https://rustwasm.github.io/wasm-pack/installer/)
* `wasm-pack build --out-name index --release --target web --features=wasmtest`
* `python3 src/wasm/test/serve.py`
* http://localhost:8080/src/wasm/test/test_noworkers.html
* http://127.0.0.1:8080/src/wasm/test/test_noworkers.html

### Test wasm build with multithreading

Expand All @@ -28,7 +28,7 @@ rustup run nightly-2022-04-07 wasm-pack build --out-name index --release --rele
--features=wasmtest,wasmrayon -- -Z build-std=panic_abort,std
```
* `python3 src/wasm/test/serve.py`
* http://localhost:8080/src/wasm/test/test.html?threaded=true
* http://127.0.0.1:8080/src/wasm/test/test.html?threaded=true

In order for this test to work the browser must have [cross origin isolation](https://web.dev/cross-origin-isolation-guide/) enabled. This requires sending the appropriate headers (see serve.py)
and cannot work without https unless testing on localhost.