按规划继续工作
结论:补齐 INI 面板中 TOOL_TABLE 字段的 LinuxCNC WASM 查询展示和浏览器验证。
This commit is contained in:
@@ -137,8 +137,9 @@ machine-session parameter/tool-table file-name strings, and performs an OPFS
|
||||
text-file, generic session snapshot, custom snapshot filename, invalid
|
||||
snapshot filename/envelope, machine file, G-code text round trip, and G-code
|
||||
filename path-model rejection. It also verifies that the INI panel UI exposes
|
||||
the default OPFS parameter-file and tool-table mappings used when a machine
|
||||
session is copied into the interpreter WASM filesystem.
|
||||
LinuxCNC-backed `[RS274NGC]PARAMETER_FILE` and `[EMCIO]TOOL_TABLE` query
|
||||
results, plus the default OPFS parameter-file and tool-table mappings used
|
||||
when a machine session is copied into the interpreter WASM filesystem.
|
||||
|
||||
The browser interpreter smoke script serves `wasm-port/` over localhost and
|
||||
runs Chromium headless against a test page that loads the interpreter-core
|
||||
|
||||
@@ -62,6 +62,7 @@ const fields = {
|
||||
joints: document.getElementById("field-joints"),
|
||||
coordinates: document.getElementById("field-coordinates"),
|
||||
parameterFile: document.getElementById("field-parameter-file"),
|
||||
toolTable: document.getElementById("field-tool-table"),
|
||||
sessionIni: document.getElementById("field-session-ini"),
|
||||
sessionParameters: document.getElementById("field-session-parameters"),
|
||||
sessionToolTable: document.getElementById("field-session-tool-table"),
|
||||
@@ -282,6 +283,7 @@ document.getElementById("query").addEventListener("click", async () => {
|
||||
joints: { section: "KINS", tag: "JOINTS" },
|
||||
coordinates: { section: "TRAJ", tag: "COORDINATES" },
|
||||
parameterFile: { section: "RS274NGC", tag: "PARAMETER_FILE" },
|
||||
toolTable: { section: "EMCIO", tag: "TOOL_TABLE" },
|
||||
});
|
||||
|
||||
for (const [name, value] of Object.entries(values)) {
|
||||
|
||||
@@ -205,6 +205,8 @@
|
||||
<dd id="field-coordinates">-</dd>
|
||||
<dt>Parameter File</dt>
|
||||
<dd id="field-parameter-file">-</dd>
|
||||
<dt>Tool Table</dt>
|
||||
<dd id="field-tool-table">-</dd>
|
||||
<dt>OPFS Path</dt>
|
||||
<dd id="field-opfs-path">linuxcnc/machines/xyzab-tdr/machine.ini</dd>
|
||||
<dt>WASM Path</dt>
|
||||
|
||||
@@ -260,6 +260,22 @@ TOOL_TABLE = browser-tool.tbl
|
||||
);
|
||||
|
||||
uiDocument.getElementById("ini-editor").value = iniText;
|
||||
uiDocument.getElementById("query").click();
|
||||
await waitFor(
|
||||
() => uiDocument.getElementById("log")?.textContent.includes("Queried LinuxCNC INI fields"),
|
||||
"INI field query",
|
||||
);
|
||||
assertEqual(
|
||||
uiDocument.getElementById("field-parameter-file").textContent,
|
||||
"browser-linuxcnc.var",
|
||||
"UI queried parameter file",
|
||||
);
|
||||
assertEqual(
|
||||
uiDocument.getElementById("field-tool-table").textContent,
|
||||
"browser-tool.tbl",
|
||||
"UI queried tool table",
|
||||
);
|
||||
|
||||
uiDocument.getElementById("save-machine-files").click();
|
||||
await waitFor(
|
||||
() => uiDocument.getElementById("log")?.textContent.includes("Saved machine text files"),
|
||||
|
||||
Reference in New Issue
Block a user