fix(test): 同步 capsule_show_strategy 单测的 Linux cfg
Linux 已从 NoActivate 列表移除(走 fcitx5 auxDown 状态提示),测试断言 需同步更新为 FallbackShow。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
57a4919712
commit
7635df5df5
1 file changed
+2
-2
@@ -3866,13 +3866,13 @@ mod tests {
|
||||
// 平台列表必须与 capsule_show_strategy_for_platform 的 cfg 完全一致:
|
||||
// 改实现里的 #[cfg] 时,一并改这两个 #[cfg],否则 Linux CI 直接红
|
||||
// (fcitx5 PR #451 把 Linux 加进 NoActivate 但漏改本测试,CI 失败)。
|
||||
#[cfg(any(target_os = "macos", target_os = "windows", target_os = "linux"))]
|
||||
#[cfg(any(target_os = "macos", target_os = "windows"))]
|
||||
assert_eq!(
|
||||
capsule_show_strategy_for_platform(),
|
||||
CapsuleShowStrategy::NoActivate
|
||||
);
|
||||
|
||||
#[cfg(not(any(target_os = "macos", target_os = "windows", target_os = "linux")))]
|
||||
#[cfg(not(any(target_os = "macos", target_os = "windows")))]
|
||||
assert_eq!(
|
||||
capsule_show_strategy_for_platform(),
|
||||
CapsuleShowStrategy::FallbackShow
|
||||
|
||||
Reference in new issue
Block a user