推进 INI 面板 shell handoff mount-state display
This commit is contained in:
@@ -88,6 +88,8 @@
|
||||
!launchApi?.getShellSessionHandoffPackageDisplayViewModel ||
|
||||
!launchApi?.getShellSessionHandoffPackageRenderState ||
|
||||
!launchApi?.getShellSessionHandoffPackageMountState ||
|
||||
!launchApi?.getShellSessionHandoffPackageMountDisplayViewModel ||
|
||||
!launchApi?.getShellSessionHandoffPackageMountRenderState ||
|
||||
!launchApi?.isSupportedShellSessionHandoffPackage ||
|
||||
!launchApi?.getLauncherLinks ||
|
||||
!launchApi?.getControlPageApiMethods
|
||||
@@ -128,7 +130,7 @@
|
||||
);
|
||||
assertEqual(
|
||||
launchApiManifest.methods.join(","),
|
||||
"isSupportedLaunchApiManifest,getLaunchApiSchema,getLaunchApiManifest,getShellIntegrationSchema,getShellIntegrationManifest,getShellIntegrationReadiness,getShellSessionHandoffSummarySchema,getShellSessionHandoffSummary,isSupportedShellSessionHandoffSummary,getShellSessionHandoffCompatibilityReport,getShellSessionHandoffDisplayViewModel,getShellSessionHandoffSnapshot,getShellSessionHandoffRenderState,getShellSessionHandoffActionPlan,getShellSessionHandoffChecklist,getShellSessionHandoffPackageSchema,getShellSessionHandoffPackage,getShellSessionHandoffPackageReport,getShellSessionHandoffPackageDisplayViewModel,getShellSessionHandoffPackageRenderState,getShellSessionHandoffPackageMountState,isSupportedShellSessionHandoffPackage,getLauncherLinks,getControlPageApiMethods",
|
||||
"isSupportedLaunchApiManifest,getLaunchApiSchema,getLaunchApiManifest,getShellIntegrationSchema,getShellIntegrationManifest,getShellIntegrationReadiness,getShellSessionHandoffSummarySchema,getShellSessionHandoffSummary,isSupportedShellSessionHandoffSummary,getShellSessionHandoffCompatibilityReport,getShellSessionHandoffDisplayViewModel,getShellSessionHandoffSnapshot,getShellSessionHandoffRenderState,getShellSessionHandoffActionPlan,getShellSessionHandoffChecklist,getShellSessionHandoffPackageSchema,getShellSessionHandoffPackage,getShellSessionHandoffPackageReport,getShellSessionHandoffPackageDisplayViewModel,getShellSessionHandoffPackageRenderState,getShellSessionHandoffPackageMountState,getShellSessionHandoffPackageMountDisplayViewModel,getShellSessionHandoffPackageMountRenderState,isSupportedShellSessionHandoffPackage,getLauncherLinks,getControlPageApiMethods",
|
||||
"launch API manifest methods",
|
||||
);
|
||||
const shellIntegrationSchema = launchApi.getShellIntegrationSchema();
|
||||
@@ -148,6 +150,8 @@
|
||||
const shellSessionHandoffPackageDisplayViewModel = launchApi.getShellSessionHandoffPackageDisplayViewModel();
|
||||
const shellSessionHandoffPackageRenderState = launchApi.getShellSessionHandoffPackageRenderState();
|
||||
const shellSessionHandoffPackageMountState = launchApi.getShellSessionHandoffPackageMountState();
|
||||
const shellSessionHandoffPackageMountDisplayViewModel = launchApi.getShellSessionHandoffPackageMountDisplayViewModel();
|
||||
const shellSessionHandoffPackageMountRenderState = launchApi.getShellSessionHandoffPackageMountRenderState();
|
||||
assertEqual(
|
||||
shellIntegrationSchema.manifestVersion,
|
||||
1,
|
||||
@@ -383,6 +387,16 @@
|
||||
"waiting-panel",
|
||||
"shell session handoff package mount-state default session",
|
||||
);
|
||||
assertEqual(
|
||||
shellSessionHandoffPackageMountDisplayViewModel.detailText,
|
||||
"session-load-state",
|
||||
"shell session handoff package mount display detail",
|
||||
);
|
||||
assertEqual(
|
||||
shellSessionHandoffPackageMountRenderState.statusLine,
|
||||
"Blocked: session-load-state",
|
||||
"shell session handoff package mount render-state status",
|
||||
);
|
||||
assertEqual(
|
||||
shellSessionHandoffPackage.ready,
|
||||
true,
|
||||
|
||||
@@ -79,6 +79,8 @@ TOOL_TABLE = browser-shell-tool.tbl
|
||||
!launchApi?.getShellSessionHandoffPackageDisplayViewModel ||
|
||||
!launchApi?.getShellSessionHandoffPackageRenderState ||
|
||||
!launchApi?.getShellSessionHandoffPackageMountState ||
|
||||
!launchApi?.getShellSessionHandoffPackageMountDisplayViewModel ||
|
||||
!launchApi?.getShellSessionHandoffPackageMountRenderState ||
|
||||
!launchApi?.isSupportedShellSessionHandoffPackage
|
||||
) {
|
||||
throw new Error("launch API namespace did not expose shell integration helpers");
|
||||
@@ -100,6 +102,8 @@ TOOL_TABLE = browser-shell-tool.tbl
|
||||
const handoffPackageDisplay = launchApi.getShellSessionHandoffPackageDisplayViewModel();
|
||||
const handoffPackageRenderState = launchApi.getShellSessionHandoffPackageRenderState();
|
||||
const handoffPackageMountState = launchApi.getShellSessionHandoffPackageMountState();
|
||||
const handoffPackageMountDisplay = launchApi.getShellSessionHandoffPackageMountDisplayViewModel();
|
||||
const handoffPackageMountRenderState = launchApi.getShellSessionHandoffPackageMountRenderState();
|
||||
assertEqual(handoffSummarySchema.summaryVersion, 1, "shell handoff summary schema version");
|
||||
assertEqual(
|
||||
launchApi.isSupportedShellSessionHandoffSummary(handoffSummary),
|
||||
@@ -162,6 +166,8 @@ TOOL_TABLE = browser-shell-tool.tbl
|
||||
assertEqual(handoffPackageMountState.packageReady, true, "shell handoff package mount-state package readiness");
|
||||
assertEqual(handoffPackageMountState.targetPage.href, "./control-page.html", "shell handoff package mount-state target");
|
||||
assertEqual(handoffPackageMountState.sessionLoadState.phase, "waiting-panel", "shell handoff package mount-state default session");
|
||||
assertEqual(handoffPackageMountDisplay.detailText, "session-load-state", "shell handoff package mount display detail");
|
||||
assertEqual(handoffPackageMountRenderState.statusLine, "Blocked: session-load-state", "shell handoff package mount render-state status");
|
||||
assertEqual(handoffPackage.checklist.ready, handoffChecklist.ready, "shell handoff package checklist");
|
||||
assertEqual(
|
||||
handoffPackage.actionPlan.nextSteps.map(({ id }) => id).join(","),
|
||||
@@ -237,8 +243,12 @@ TOOL_TABLE = browser-shell-tool.tbl
|
||||
const readyMountState = launchApi.getShellSessionHandoffPackageMountState(
|
||||
controlPageApi[handoffSummary.handoffMethods.loadSessionState](),
|
||||
);
|
||||
const readyMountDisplay = launchApi.getShellSessionHandoffPackageMountDisplayViewModel(readyMountState);
|
||||
const readyMountRenderState = launchApi.getShellSessionHandoffPackageMountRenderState(readyMountState);
|
||||
assertEqual(readyMountState.ready, true, "shell handoff package mount-state readiness");
|
||||
assertEqual(readyMountState.sessionLoadState.phase, "ready", "shell handoff package mount-state ready session");
|
||||
assertEqual(readyMountDisplay.detailText, "No blocking reasons", "shell handoff package ready mount display");
|
||||
assertEqual(readyMountRenderState.statusLine, "Ready: No blocking reasons", "shell handoff package ready mount render-state");
|
||||
assertEqual(
|
||||
controlPageApi[handoffSummary.handoffMethods.readStatus]().status.lastAction,
|
||||
null,
|
||||
|
||||
Reference in New Issue
Block a user