Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
* Added `DocumentOrShadowRoot.adoptedStyleSheets`.
[#4625](https://github.com/wasm-bindgen/wasm-bindgen/pull/4625)

* Added support for arguments with spaces using shell-style quoting in webdriver `*_ARGS`
environment variables to `wasm-bindgen-test`.
[#4433](https://github.com/wasm-bindgen/wasm-bindgen/pull/4433)

### Fixed

* Fixed wrong method names for `GestureEvent` bindings.
Expand Down
1 change: 1 addition & 0 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ rouille = { version = "3.0.0", default-features = false }
serde = { version = "1.0", features = ['derive'] }
serde_derive = "1.0"
serde_json = "1.0"
shlex = "1"
tempfile = "3.0"
ureq = { version = "2.7", default-features = false, features = ["brotli", "gzip"] }
walrus = "0.23"
Expand Down
9 changes: 4 additions & 5 deletions crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,10 @@ impl Driver {
/// extra arguments to the driver's invocation.
fn find() -> Result<Driver, Error> {
let env_args = |name: &str| {
env::var(format!("{}_ARGS", name.to_uppercase()))
.unwrap_or_default()
.split_whitespace()
.map(|s| s.to_string())
.collect::<Vec<_>>()
let var = env::var(format!("{}_ARGS", name.to_uppercase())).unwrap_or_default();

shlex::split(&var)
.unwrap_or_else(|| var.split_whitespace().map(|s| s.to_string()).collect())
};

let drivers = [
Expand Down
Loading