From 8394042d183cabe51b0cbea6efd8af1879f1eb1d Mon Sep 17 00:00:00 2001 From: cnc Date: Fri, 5 Jun 2026 22:20:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E9=BD=90=20OPFS=20=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E8=B7=A8=E5=AE=9E=E4=BE=8B=E6=81=A2=E5=A4=8D=E8=A6=86=E7=9B=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/test-browser-wasm-smoke-opfs-parameter-sections.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/test-browser-wasm-smoke-opfs-parameter-sections.js b/web/test-browser-wasm-smoke-opfs-parameter-sections.js index 47e39ce..0b8dee8 100644 --- a/web/test-browser-wasm-smoke-opfs-parameter-sections.js +++ b/web/test-browser-wasm-smoke-opfs-parameter-sections.js @@ -143,8 +143,8 @@ export async function runBrowserOpfsParameterSections(context, simulator) { "linuxcnc", backend, ); - expectEvent(fileParameterEvents, (event) => event.type === "program-end", - "OPFS program file with LinuxCNC parameter persistence did not parse"); + expectEvent(fileParameterEvents, (event) => event.type === "program-end", "OPFS program file with LinuxCNC parameter persistence did not parse"); + await withSmokeSimulator(async (restoredFileParameterSimulator) => expectEvent(await restoredFileParameterSimulator.parseWithParameterFile("G21 G90\nF100\nO10 if [#5161 EQ 1]\nG1 X10\nO10 endif\n", "parameters/rs274ngc.var", "linuxcnc", backend), (event) => event.type === "linear-feed" && near(event.end.x, 10), "LinuxCNC OPFS parameter file saved by parseFileWithParameterFile was not restored in a new WASM instance")); }); await runSection("opfs missing parameter file creation", async () => {