推进 INI 面板快照 G-code 运行选择
This commit is contained in:
@@ -455,8 +455,8 @@ TOOL_TABLE = browser-tool.tbl
|
||||
);
|
||||
assertEqual(
|
||||
uiDocument.getElementById("field-session-gcode").textContent,
|
||||
"/work/ui-session.ngc",
|
||||
"UI session G-code path",
|
||||
"linuxcnc/gcode/ui-session.ngc",
|
||||
"UI session snapshot G-code path",
|
||||
);
|
||||
assertEqual(
|
||||
uiDocument.getElementById("field-run-status").textContent,
|
||||
@@ -464,6 +464,9 @@ TOOL_TABLE = browser-tool.tbl
|
||||
"UI G-code run status",
|
||||
);
|
||||
const runLog = uiDocument.getElementById("log").textContent;
|
||||
if (!runLog.includes("Program: linuxcnc/gcode/ui-session.ngc -> /work/ui-session.ngc")) {
|
||||
throw new Error(`UI G-code run did not use snapshot OPFS program path: ${runLog}`);
|
||||
}
|
||||
if (
|
||||
!runLog.includes("canon_event=STRAIGHT_TRAVERSE") ||
|
||||
!runLog.includes("canon_event=STRAIGHT_FEED")
|
||||
|
||||
Reference in New Issue
Block a user