补充浏览器 OPFS 默认路径覆盖
结论:浏览器解释器 smoke 现在验证真实 INI WASM 会话在缺失参数文件和刀具表文件名时回落到默认 OPFS 路径。
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user