From a8bbcd3aa23b185ea1f6d04da23e907a289cd0e4 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Fri, 16 Oct 2026 18:56:18 +0700 Subject: [PATCH] Scripts: the browser-storage test runs where /browser paths are absolute Co-Authored-By: Claude Opus 5.5 --- crates/script/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/script/src/lib.rs b/crates/script/src/lib.rs index f2125de9..19904c2a 100644 --- a/crates/script/src/lib.rs +++ b/crates/script/src/lib.rs @@ -106,7 +106,9 @@ mod tests_ui_more; // #760: `$.evalFile` and `BridgeTalk`. #[cfg(test)] mod tests_evalfile; -#[cfg(test)] +// `/browser/…` is the web editor's file table, an absolute path on wasm; on Windows it has no +// drive, so the script runtime resolves it under the current drive, where the host holds nothing. +#[cfg(all(test, not(windows)))] mod tests_services; #[cfg(test)] mod tests_ui_mouse;