推进 INI 面板 control-page refresh workflow helper

This commit is contained in:
2026-06-15 04:39:08 +08:00
parent 213514f64c
commit ed5d03ea1b
13 changed files with 379 additions and 13 deletions

View File

@@ -64,6 +64,7 @@ TOOL_TABLE = browser-tool.tbl
if (
!controlPageApi?.getControlView ||
!controlPageApi?.getPanelApi ||
!controlPageApi?.refreshControlPage ||
!controlPageApi?.renderControlPage
) {
throw new Error("control page API namespace did not expose control helpers");
@@ -82,6 +83,11 @@ TOOL_TABLE = browser-tool.tbl
() => controlPageApi.getControlView(),
"control page API view",
);
assertEqual(
controlPageApi.refreshControlPage().phase,
"rendered",
"control page refresh phase",
);
panelDoc.getElementById("ini-editor").value = iniText;
panelDoc.getElementById("query").click();