继续推进浏览器 saved tool-table 期望行 guard

This commit is contained in:
2026-06-14 09:35:19 +08:00
parent 6c00245b33
commit b244d7e0fd
2 changed files with 58 additions and 2 deletions

View File

@@ -9423,10 +9423,11 @@
{ resultLines: ["tool_2.toolno=5"] },
]).join("\n"),
);
const browserDirectSavedToolTableTextLines = directToolTableTextLines(browserDirectTools);
verifyExpectedOutput(
"saved_tool_table_direct_text",
interp.readTextFile(browserToolTablePath),
directToolTableTextLines(browserDirectTools).join("\n"),
browserDirectSavedToolTableTextLines.join("\n"),
);
const browserDirectRandomToolTableInputLines = [
@@ -9599,11 +9600,15 @@
savedToolTable,
opfsToolTableResultLinesForTool("save", browserInterpToolTable),
);
const browserInterpSavedToolTableTextLines = opfsToolTableTextLinesForTool(
browserInterpToolTable,
["I+12.000000", "J+34.000000", "Q4"],
);
await verifyOpfsMachineFileReadback(
"opfs_saved_tool_table_text",
browserInterpMachineId,
"toolTable",
opfsToolTableTextLinesForTool(browserInterpToolTable, ["I+12.000000", "J+34.000000", "Q4"]),
browserInterpSavedToolTableTextLines,
);
const browserRandomMachineId = "browser-random-toolchanger";