Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

Offline web test timeouts show which build each script ran (#3956) (#12206)

Thijs Damsma3e6eadc118d2
diff --git a/xtask/src/web_offline_test.rs b/xtask/src/web_offline_test.rs
index ad3f67e9bc..24a68775ca 100644
--- a/xtask/src/web_offline_test.rs
+++ b/xtask/src/web_offline_test.rs
@@ -535,6 +535,8 @@ const STATE_JS: &str = "(async () => {
}
const filling = (await navigator.locks.query()).held.map((l) => l.name).filter((n) => n.startsWith(prefix));
return { search: location.search, ready: document.readyState, build: document.documentElement.dataset.build ?? null,
+ scriptStartedBuild: document.documentElement.dataset.started ?? null,
+ scriptSharedBuild: document.documentElement.dataset.shared ?? null,
started: STARTED, controlled: !!navigator.serviceWorker.controller, caches: caches_, kept, retired, complete, filling,
registered: (await navigator.serviceWorker.getRegistrations()).filter((r) => r.scope === scope).length };
})()";