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

This commit is contained in:
2026-06-14 12:34:44 +08:00
parent b244d7e0fd
commit c8dd5b0598
2 changed files with 59 additions and 2 deletions

View File

@@ -9486,10 +9486,13 @@
{ resultLines: ["tool_pocket_9.toolno=5"] },
]).join("\n"),
);
const browserDirectRandomSavedToolTableTextLines = opfsRandomToolTableTextLines(
browserDirectRandomTools,
);
verifyExpectedOutput(
"saved_tool_table_direct_random_text",
interp.readTextFile(browserRandomToolTablePath),
opfsRandomToolTableTextLines(browserDirectRandomTools).join("\n"),
browserDirectRandomSavedToolTableTextLines.join("\n"),
);
const browserInterpMachineId = "browser-interp";
@@ -9702,11 +9705,12 @@
{ resultLines: ["tool_pocket_9.toolno=5"] },
]),
);
const browserRandomSavedToolTableTextLines = opfsRandomToolTableTextLines(browserRandomTools);
await verifyOpfsMachineFileReadback(
"opfs_saved_random_tool_table_text",
browserRandomMachineId,
"toolTable",
opfsRandomToolTableTextLines(browserRandomTools),
browserRandomSavedToolTableTextLines,
);
const iniFileMachineId = "browser-ini-file-session";