按规划继续工作
结论:补齐显式工具表 override 路径的浏览器 OPFS 保存读回验证,继续通过 vendored LinuxCNC tooldata_save 路径覆盖。
This commit is contained in:
@@ -761,6 +761,40 @@
|
||||
"5399 101",
|
||||
].join("\n"),
|
||||
);
|
||||
const savedExplicitToolTable = await saveMachineToolTableToOpfs(
|
||||
interp,
|
||||
"browser-ini-override-session",
|
||||
{
|
||||
opfsPath: loadedIniOverrideSession.toolTable.opfsPath,
|
||||
wasmPath: loadedIniOverrideSession.toolTable.wasmPath,
|
||||
},
|
||||
);
|
||||
if (
|
||||
savedExplicitToolTable.opfsPath !==
|
||||
"linuxcnc/machines/browser-ini-override-session/browser-explicit-tool.tbl"
|
||||
) {
|
||||
throw new Error(`unexpected explicit saved tool path: ${savedExplicitToolTable.opfsPath}`);
|
||||
}
|
||||
verifyExpectedOutput(
|
||||
"opfs_save_explicit_tool_table",
|
||||
savedExplicitToolTable.result,
|
||||
[
|
||||
"tooldata_save=0",
|
||||
"tool_1.toolno=9",
|
||||
"tool_1.pocketno=9",
|
||||
].join("\n"),
|
||||
);
|
||||
verifyExpectedOutput(
|
||||
"opfs_saved_explicit_tool_table_text",
|
||||
await loadTextFile(loadedIniOverrideSession.toolTable.opfsPath),
|
||||
[
|
||||
"T9",
|
||||
"P9",
|
||||
"Z+5.500000",
|
||||
"D+0.625000",
|
||||
";browser explicit tool",
|
||||
].join("\n"),
|
||||
);
|
||||
|
||||
await saveMachineTextFiles("browser-invalid-param-file-session", {
|
||||
ini: [
|
||||
|
||||
Reference in New Issue
Block a user