参考所有分组:锁定 OPFS policy 负向守卫,测试通过

This commit is contained in:
cnc
2026-06-03 15:49:36 +08:00
parent 1433435121
commit eef30e1831

View File

@@ -778,7 +778,11 @@ grep -F 'await removeOpfsEntry(workspacePath, `${path}.new`, false);' web/src/wa
grep -F 'OPFS workspace is required for browser program parsing' web/src/app.js >/dev/null
grep -F 'const events = await simulator.parseFileWithParameterFile(programPath, parameterPath, "linuxcnc", parseOptions);' web/src/app.js >/dev/null
grep -F 'default browser simulator did not create an OPFS workspace' web/test-browser-wasm-smoke-opfs-policy-sections.js >/dev/null
grep -F 'default browser simulator used an unexpected OPFS workspace path' web/test-browser-wasm-smoke-opfs-policy-sections.js >/dev/null
grep -F 'browser simulator allowed OPFS to be disabled' web/test-browser-wasm-smoke-opfs-policy-sections.js >/dev/null
grep -F 'browser simulator accepted unsafe OPFS workspace ${unsafeWorkspacePath}' web/test-browser-wasm-smoke-opfs-policy-sections.js >/dev/null
grep -F 'browser simulator accepted unsafe OPFS mount ${unsafeMountPoint}' web/test-browser-wasm-smoke-opfs-policy-sections.js >/dev/null
grep -F 'browser simulator accepted empty OPFS mount' web/test-browser-wasm-smoke-opfs-policy-sections.js >/dev/null
grep -F 'app frame did not restore current program from OPFS after reload' web/test-browser-wasm-smoke-app-sections.js >/dev/null
grep -F 'app frame did not report OPFS program restore after reload' web/test-browser-wasm-smoke-app-sections.js >/dev/null
grep -F 'app frame did not persist LinuxCNC parameter state into OPFS' web/test-browser-wasm-smoke-app-sections.js >/dev/null