推进 INI 面板 shell handoff package schema
This commit is contained in:
@@ -82,7 +82,9 @@
|
||||
!launchApi?.getShellSessionHandoffRenderState ||
|
||||
!launchApi?.getShellSessionHandoffActionPlan ||
|
||||
!launchApi?.getShellSessionHandoffChecklist ||
|
||||
!launchApi?.getShellSessionHandoffPackageSchema ||
|
||||
!launchApi?.getShellSessionHandoffPackage ||
|
||||
!launchApi?.isSupportedShellSessionHandoffPackage ||
|
||||
!launchApi?.getLauncherLinks ||
|
||||
!launchApi?.getControlPageApiMethods
|
||||
) {
|
||||
@@ -122,7 +124,7 @@
|
||||
);
|
||||
assertEqual(
|
||||
launchApiManifest.methods.join(","),
|
||||
"isSupportedLaunchApiManifest,getLaunchApiSchema,getLaunchApiManifest,getShellIntegrationSchema,getShellIntegrationManifest,getShellIntegrationReadiness,getShellSessionHandoffSummarySchema,getShellSessionHandoffSummary,isSupportedShellSessionHandoffSummary,getShellSessionHandoffCompatibilityReport,getShellSessionHandoffDisplayViewModel,getShellSessionHandoffSnapshot,getShellSessionHandoffRenderState,getShellSessionHandoffActionPlan,getShellSessionHandoffChecklist,getShellSessionHandoffPackage,getLauncherLinks,getControlPageApiMethods",
|
||||
"isSupportedLaunchApiManifest,getLaunchApiSchema,getLaunchApiManifest,getShellIntegrationSchema,getShellIntegrationManifest,getShellIntegrationReadiness,getShellSessionHandoffSummarySchema,getShellSessionHandoffSummary,isSupportedShellSessionHandoffSummary,getShellSessionHandoffCompatibilityReport,getShellSessionHandoffDisplayViewModel,getShellSessionHandoffSnapshot,getShellSessionHandoffRenderState,getShellSessionHandoffActionPlan,getShellSessionHandoffChecklist,getShellSessionHandoffPackageSchema,getShellSessionHandoffPackage,isSupportedShellSessionHandoffPackage,getLauncherLinks,getControlPageApiMethods",
|
||||
"launch API manifest methods",
|
||||
);
|
||||
const shellIntegrationSchema = launchApi.getShellIntegrationSchema();
|
||||
@@ -136,6 +138,7 @@
|
||||
const shellSessionHandoffRenderState = launchApi.getShellSessionHandoffRenderState();
|
||||
const shellSessionHandoffActionPlan = launchApi.getShellSessionHandoffActionPlan();
|
||||
const shellSessionHandoffChecklist = launchApi.getShellSessionHandoffChecklist();
|
||||
const shellSessionHandoffPackageSchema = launchApi.getShellSessionHandoffPackageSchema();
|
||||
const shellSessionHandoffPackage = launchApi.getShellSessionHandoffPackage();
|
||||
assertEqual(
|
||||
shellIntegrationSchema.manifestVersion,
|
||||
@@ -292,6 +295,21 @@
|
||||
1,
|
||||
"shell session handoff package version",
|
||||
);
|
||||
assertEqual(
|
||||
shellSessionHandoffPackageSchema.packageVersion,
|
||||
1,
|
||||
"shell session handoff package schema version",
|
||||
);
|
||||
assertEqual(
|
||||
launchApi.isSupportedShellSessionHandoffPackage(shellSessionHandoffPackage),
|
||||
true,
|
||||
"shell session handoff package supported",
|
||||
);
|
||||
assertEqual(
|
||||
launchApi.isSupportedShellSessionHandoffPackage({ ...shellSessionHandoffPackage, packageVersion: 2 }),
|
||||
false,
|
||||
"shell session handoff package rejects version",
|
||||
);
|
||||
assertEqual(
|
||||
shellSessionHandoffPackage.ready,
|
||||
true,
|
||||
|
||||
Reference in New Issue
Block a user