新增 INI 面板 shell API surface inventory
This commit is contained in:
@@ -100,6 +100,7 @@
|
||||
!launchApi?.getShellSessionHandoffPackageMountDisplayViewModel ||
|
||||
!launchApi?.getShellSessionHandoffPackageMountRenderState ||
|
||||
!launchApi?.getShellSessionReadinessWorkflowReport ||
|
||||
!launchApi?.getShellApiSurfaceInventory ||
|
||||
!launchApi?.renderShellSessionHandoffMountState ||
|
||||
!launchApi?.getWorkflowOverviewContract ||
|
||||
!launchApi?.getWorkflowOverviewReadiness ||
|
||||
@@ -180,6 +181,7 @@
|
||||
const shellSessionHandoffPackageMountDisplayViewModel = launchApi.getShellSessionHandoffPackageMountDisplayViewModel();
|
||||
const shellSessionHandoffPackageMountRenderState = launchApi.getShellSessionHandoffPackageMountRenderState();
|
||||
const shellSessionReadinessWorkflowReport = launchApi.getShellSessionReadinessWorkflowReport();
|
||||
const shellApiSurfaceInventory = launchApi.getShellApiSurfaceInventory();
|
||||
const workflowOverviewContract = launchApi.getWorkflowOverviewContract();
|
||||
assertEqual(
|
||||
shellIntegrationSchema.manifestVersion,
|
||||
@@ -436,6 +438,16 @@
|
||||
3,
|
||||
"shell session readiness workflow report rows",
|
||||
);
|
||||
assertEqual(
|
||||
shellApiSurfaceInventory.apiName,
|
||||
"ini-panel-shell-api-surface-inventory",
|
||||
"shell API surface inventory API",
|
||||
);
|
||||
assertEqual(
|
||||
shellApiSurfaceInventory.counts.sessionReadinessRows,
|
||||
3,
|
||||
"shell API surface inventory session readiness rows",
|
||||
);
|
||||
assertEqual(
|
||||
workflowOverviewContract.pageHref,
|
||||
"./workflow-overview.html",
|
||||
|
||||
@@ -101,6 +101,7 @@ TOOL_TABLE = browser-shell-tool.tbl
|
||||
!launchApi?.readShellSessionHandoffStatusFromControlPage ||
|
||||
!launchApi?.getShellSessionHandoffWorkflowSummary ||
|
||||
!launchApi?.getShellSessionReadinessWorkflowReport ||
|
||||
!launchApi?.getShellApiSurfaceInventory ||
|
||||
!launchApi?.getShellSessionHandoffWorkflowDisplayViewModel ||
|
||||
!launchApi?.getShellSessionHandoffWorkflowRenderState ||
|
||||
!launchApi?.getShellSessionHandoffWorkflowDomContract ||
|
||||
@@ -515,6 +516,9 @@ TOOL_TABLE = browser-shell-tool.tbl
|
||||
const sessionReadinessWorkflowReport = launchApi.getShellSessionReadinessWorkflowReport({
|
||||
workflowSummary: workflowSummaryResult,
|
||||
});
|
||||
const shellApiSurfaceInventory = launchApi.getShellApiSurfaceInventory({
|
||||
sessionReadinessWorkflowReport,
|
||||
});
|
||||
const workflowDisplayResult = launchApi.getShellSessionHandoffWorkflowDisplayViewModel(
|
||||
workflowSummaryResult,
|
||||
);
|
||||
@@ -562,6 +566,16 @@ TOOL_TABLE = browser-shell-tool.tbl
|
||||
3,
|
||||
"shell handoff session readiness workflow report rows",
|
||||
);
|
||||
assertEqual(
|
||||
shellApiSurfaceInventory.ready,
|
||||
true,
|
||||
"shell handoff API surface inventory readiness",
|
||||
);
|
||||
assertEqual(
|
||||
shellApiSurfaceInventory.counts.sessionReadinessRows,
|
||||
3,
|
||||
"shell handoff API surface inventory session readiness rows",
|
||||
);
|
||||
assertEqual(
|
||||
workflowSummaryResult.sessionReadiness.ready,
|
||||
true,
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
!workflowApi?.getWorkflowOverviewDisplayViewModel ||
|
||||
!workflowApi?.getWorkflowOverviewSummary ||
|
||||
!workflowApi?.getWorkflowOverviewSessionReadinessReport ||
|
||||
!workflowApi?.getWorkflowOverviewApiSurfaceInventory ||
|
||||
!workflowApi?.getWorkflowOverviewDomContract ||
|
||||
!workflowApi?.getWorkflowOverviewDomReadiness ||
|
||||
!workflowApi?.renderWorkflowOverview ||
|
||||
@@ -58,6 +59,7 @@
|
||||
const displayViewModel = workflowApi.getWorkflowOverviewDisplayViewModel();
|
||||
const summary = workflowApi.getWorkflowOverviewSummary();
|
||||
const sessionReadinessReport = workflowApi.getWorkflowOverviewSessionReadinessReport();
|
||||
const apiSurfaceInventory = workflowApi.getWorkflowOverviewApiSurfaceInventory();
|
||||
const domContract = workflowApi.getWorkflowOverviewDomContract();
|
||||
const domReadiness = workflowApi.getWorkflowOverviewDomReadiness();
|
||||
const renderResult = workflowApi.renderWorkflowOverview();
|
||||
@@ -86,6 +88,12 @@
|
||||
"workflow overview session readiness report API name",
|
||||
);
|
||||
assertEqual(sessionReadinessReport.rows.length, 3, "workflow overview session readiness report rows");
|
||||
assertEqual(
|
||||
apiSurfaceInventory.apiName,
|
||||
"ini-panel-shell-api-surface-inventory",
|
||||
"workflow overview API surface inventory API name",
|
||||
);
|
||||
assertEqual(apiSurfaceInventory.rows.length, 5, "workflow overview API surface inventory rows");
|
||||
assertEqual(displayViewModel.title, "Shell handoff workflow", "workflow overview display title");
|
||||
assertEqual(renderState.renderStateVersion, 1, "workflow overview render-state version");
|
||||
assertEqual(renderState.dataset.handoffScope, "workflow", "workflow overview render-state scope");
|
||||
|
||||
Reference in New Issue
Block a user