按建议,继续完成后续工作
结论:已新增 OPFS host-side 路径模型,覆盖 INI、tool table、parameter、G-code、preview cache 与 session snapshot 存储目标,并让 file-service 和浏览器 smoke 复用该模型;聚合 smoke 验证通过。
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
<script type="module">
|
||||
import { createLinuxCncIniSdk } from "../../runtime/sdk/src/linuxcnc-ini.js";
|
||||
import { loadTextFile, saveTextFile } from "../../runtime/opfs/file-service.js";
|
||||
import { machineIniPath } from "../../runtime/opfs/path-model.js";
|
||||
|
||||
const status = document.getElementById("status");
|
||||
|
||||
@@ -46,7 +47,7 @@ JOINTS = 3
|
||||
assertEqual(fields.machine, "browser-smoke", "field machine");
|
||||
assertEqual(fields.joints, "3", "field joints");
|
||||
|
||||
const opfsPath = "linuxcnc/browser-smoke.ini";
|
||||
const opfsPath = machineIniPath("browser-smoke");
|
||||
await saveTextFile(opfsPath, iniText);
|
||||
assertEqual(await loadTextFile(opfsPath), iniText, "opfs roundtrip");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user