feat(*): 画布创作体验 - 完善 Agent 引导、生成防重、搜索快捷键、素材多选与分辨率兼容

This commit is contained in:
ddCat committed 2026-08-28 16:24:58 +08:00
1 parent 913cf4b304
commit ab89c05362
52 files changed
+2344 -500

No files matched your search

+5 -9
View File
@@ -365,19 +365,15 @@ func TestDeclarativeManifestSupportsMediaPathsTransformsAndErrors(t *testing.T)
}
}
func TestDeclarativeManifestNormalizesVideoResolutionWithoutBreakingWorkflowValues(t *testing.T) {
func TestDeclarativeManifestKeepsLegacyVideoResolutionTransformCompatible(t *testing.T) {
tests := map[string]string{
"768": "768p",
"768p": "768p",
"768P": "768p",
" 768P ": "768p",
"768p竖": "768p竖",
"768P横": "768p横",
"2K": "2k",
"768": "768p",
"768P": "768p",
"768P横": "768p横",
}
for input, expected := range tests {
if actual := applyManifestTransform(input, "video-resolution"); actual != expected {
t.Errorf("video resolution transform %q = %#v, want %q", input, actual, expected)
t.Errorf("legacy video resolution transform %q = %#v, want %q", input, actual, expected)
}
}
}