推进 INI 面板 launch mount-state DOM 渲染

This commit is contained in:
2026-06-15 11:43:00 +08:00
parent df0773b431
commit 1375e0ddd5
5 changed files with 134 additions and 1 deletions

View File

@@ -487,6 +487,36 @@
"none",
"shell session handoff DOM blocking reasons",
);
assertEqual(
launchDoc.querySelector("[data-handoff-mount-status]").textContent,
"Blocked: session-load-state",
"shell session handoff mount DOM status",
);
assertEqual(
launchDoc.querySelector("[data-handoff-mount]").dataset.handoffPhase,
"blocked",
"shell session handoff mount DOM phase",
);
assertEqual(
launchDoc.querySelector("[data-handoff-mount]").dataset.handoffReady,
"false",
"shell session handoff mount DOM ready",
);
assertEqual(
launchDoc.querySelector("[data-handoff-mount]").dataset.handoffScope,
"mount",
"shell session handoff mount DOM scope",
);
assertEqual(
launchDoc.querySelector('[data-handoff-mount-value="session-load-state"]').textContent,
"waiting-panel",
"shell session handoff mount DOM session state",
);
assertEqual(
launchDoc.querySelector('[data-handoff-mount-value="session-load-state"]').dataset.handoffMountStatus,
"blocked",
"shell session handoff mount DOM session status",
);
assertEqual(
shellSessionHandoffSummary.targetPage.href,
"./control-page.html",

View File

@@ -182,6 +182,9 @@ assert.match(launchText, /\bgetShellSessionHandoffPackageMountState\b/);
assert.match(launchText, /\bgetShellSessionHandoffPackageMountDisplayViewModel\b/);
assert.match(launchText, /\bgetShellSessionHandoffPackageMountRenderState\b/);
assert.match(launchText, /\bisSupportedShellSessionHandoffPackage\b/);
assert.match(launchText, /\bdata-handoff-mount\b/);
assert.match(launchText, /\bdata-handoff-mount-status\b/);
assert.match(launchText, /\bdata-handoff-mount-rows\b/);
assert.match(launchText, /\blinuxCncIniPanelLaunchApi\b/);
console.log("ini_panel_launch_api_manifest_node_smoke=ok");