按规划继续工作
结论:补齐 INI 派生自定义工具表路径的浏览器 OPFS 保存读回验证,继续通过 vendored LinuxCNC tooldata_save 路径覆盖。
This commit is contained in:
@@ -599,6 +599,34 @@
|
||||
"tool_1.comment=browser custom tool",
|
||||
].join("\n"),
|
||||
);
|
||||
const savedIniNamedToolTable = await saveMachineToolTableToOpfs(
|
||||
interp,
|
||||
"browser-ini-file-session",
|
||||
{
|
||||
opfsPath: loadedIniFileSession.toolTable.opfsPath,
|
||||
wasmPath: loadedIniFileSession.toolTable.wasmPath,
|
||||
},
|
||||
);
|
||||
verifyExpectedOutput(
|
||||
"opfs_save_ini_named_tool_table",
|
||||
savedIniNamedToolTable.result,
|
||||
[
|
||||
"tooldata_save=0",
|
||||
"tool_1.toolno=8",
|
||||
"tool_1.pocketno=8",
|
||||
].join("\n"),
|
||||
);
|
||||
verifyExpectedOutput(
|
||||
"opfs_saved_ini_named_tool_table_text",
|
||||
await loadTextFile(loadedIniFileSession.toolTable.opfsPath),
|
||||
[
|
||||
"T8",
|
||||
"P8",
|
||||
"Z+4.500000",
|
||||
"D+0.500000",
|
||||
";browser custom tool",
|
||||
].join("\n"),
|
||||
);
|
||||
|
||||
await saveMachineTextFiles("browser-ini-override-session", {
|
||||
ini: [
|
||||
|
||||
Reference in New Issue
Block a user