补充浏览器 OPFS 默认路径覆盖

结论:浏览器解释器 smoke 现在验证真实 INI WASM 会话在缺失参数文件和刀具表文件名时回落到默认 OPFS 路径。
This commit is contained in:
2026-06-08 09:33:07 +08:00
parent 4de2c84a62
commit e141b4fc69
2 changed files with 16 additions and 2 deletions

View File

@@ -307,6 +307,18 @@
toolTableWasmPath: "/work/browser-random-tool.tbl",
},
);
if (
loadedRandomSession.parameters.opfsPath !==
"linuxcnc/machines/browser-random-toolchanger/linuxcnc.var"
) {
throw new Error(`unexpected default parameter path: ${loadedRandomSession.parameters.opfsPath}`);
}
if (
loadedRandomSession.toolTable.opfsPath !==
"linuxcnc/machines/browser-random-toolchanger/tool.tbl"
) {
throw new Error(`unexpected default tool path: ${loadedRandomSession.toolTable.opfsPath}`);
}
verifyExpectedOutput(
"opfs_load_random_tool_table",
loadedRandomSession.toolTable.result,