参考所有分组:锁定 OPFS parseFileWithParameterFile 路径守卫,测试通过
This commit is contained in:
@@ -78,6 +78,20 @@ export async function runBrowserOpfsBasicSections(context, simulator) {
|
||||
backend: "linuxcnc-rs274",
|
||||
}),
|
||||
],
|
||||
[
|
||||
"parseFileWithParameterFileProgram",
|
||||
() =>
|
||||
simulator.parseFileWithParameterFile("../escape.ngc", "parameters/escape.var", "linuxcnc", {
|
||||
backend: "linuxcnc-rs274",
|
||||
}),
|
||||
],
|
||||
[
|
||||
"parseFileWithParameterFileParameter",
|
||||
() =>
|
||||
simulator.parseFileWithParameterFile("programs/browser-smoke.ngc", "../escape.var", "linuxcnc", {
|
||||
backend: "linuxcnc-rs274",
|
||||
}),
|
||||
],
|
||||
]) {
|
||||
await expectErrorContaining(
|
||||
action,
|
||||
|
||||
Reference in New Issue
Block a user