From 40d36f5e2adef994aacb21bf1728c00c9d8e76c8 Mon Sep 17 00:00:00 2001 From: wanglei Date: Mon, 30 Nov 2026 11:50:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=A7=86=E9=A2=91=E8=AF=8A?= =?UTF-8?q?=E6=96=AD=E4=BB=BB=E6=84=8F=E6=89=8B=E9=97=A8=E6=8E=A7=E7=9A=84?= =?UTF-8?q?=E5=86=92=E7=83=9F=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/SopVideoAgent.Smoke/TriggerDiagnosticsChecks.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/SopVideoAgent.Smoke/TriggerDiagnosticsChecks.cs b/tests/SopVideoAgent.Smoke/TriggerDiagnosticsChecks.cs index ac47ece..ec789d0 100644 --- a/tests/SopVideoAgent.Smoke/TriggerDiagnosticsChecks.cs +++ b/tests/SopVideoAgent.Smoke/TriggerDiagnosticsChecks.cs @@ -17,8 +17,9 @@ internal static class TriggerDiagnosticsChecks var control = new ConditionEvaluator(config.Sop.Settings, new() { ["target"] = new(40, 40, 20, 20) }); for (var i = 0; i <= 20; i++) { - var frame = new FrameResult { FrameId = i, Hands = [new() { HandType = HandType.Left, Rect = new(48, 48, 4, 4) }, - new() { HandType = HandType.Right, Rect = i is 2 or 3 or 4 or 8 or 9 ? new(48, 48, 4, 4) : new(80, 80, 4, 4) }] }; + // 右手始终可见,左右手轮流命中,确保任意手模式能跨手连续累计稳定帧。 + var frame = new FrameResult { FrameId = i, Hands = [new() { HandType = HandType.Left, Rect = i is 0 or 2 or 4 or 8 ? new(48, 48, 4, 4) : new(80, 80, 4, 4) }, + new() { HandType = HandType.Right, Rect = i is 3 or 9 ? new(48, 48, 4, 4) : new(80, 80, 4, 4) }] }; diagnostics.ObserveFrame(frame, i / 10d); if (i >= 6) { @@ -35,8 +36,8 @@ internal static class TriggerDiagnosticsChecks } var result = diagnostics.Build(); var step = result.Steps[1]; - Check(step.WindowFrames == 5 && step.WindowRawMatches == 3 && step.WindowMaxConsecutiveMatches == 3 && step.WindowFirstReadySeconds == .3, - "独立窗口观察必须复用实际any优先右手语义,不能把左手常驻当作命中"); + Check(step.WindowFrames == 5 && step.WindowRawMatches == 4 && step.WindowMaxConsecutiveMatches == 3 && step.WindowFirstReadySeconds == .3, + "独立窗口按任意手命中计数,并在两手均离开区域时中断稳定帧"); Check(step.ArmedSeconds == .6 && step.CapturedSeconds == .9 && step.SubmittedAtSeconds == 1.4 && step.ConfirmedAtSeconds == 2, "实际启用、取图、发送、确认时间须区分,不能把延迟发送时间当成取图时间"); Check(step.ActualRawMatches == 2 && step.ActualMaxStableFrames == 2 && result.ObservedFrames == 21,