Bmotion's layout animation E2E test reads frames the runner didn't draw as a jump

Đang mở
#15,619 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@msynk đang làm issue này rồi.

Từ ngày 4/12/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

LayoutTests.ALayoutAnimation_StartsFromTheElementsOwnTransform (src/Utilities/Bmotion/Tests/Bit.Bmotion.Tests.E2E/LayoutTests.cs) failed in "Bmotion E2E - auto-noprerender (net11.0)" of All Utilities E2E CI run 47434198193, while the other 167 tests passed:

The layout animation jumped: 0, 0, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 38, 19, 38, 57, 0, 0, 0, 0, 0, 0, 0
Assert.IsTrue(jumps.All(j => j < Math.Max(45, typical * 1.8)))

Cause. The test samples the box's left edge in a requestAnimationFrame loop (SampleAsync) and fails on any step between two samples longer than 45px. The box's FLIP is a Web Animation, a linear 0.3s tween over 340px (Layout.razor): 18.9px per 16.7ms frame, 18 frames. The run above saw 14 moving samples, and its 38, 38 and 57 are exactly two, two and three of those 19px steps - the four frames the sampler missed. The box moved exactly as its tween says; the sampler ran less often than the frames did, so one sample carried three frames' travel.

Fix. The test samples on the document timeline (SampleOnTheTimelineAsync, which now records the left edge too) and shares each step out over the whole frames the timeline says it spans, at least one, before the same bound as before (45px, or 1.8 times the typical step). A missed frame no longer reads as a jump, and nothing passes that the former check failed when the sampler ran every frame: a 50px jump when the FLIP starts, or a flash at the new place, still fails.

Earlier Bmotion E2E failures on develop and the night branches (2026-11-26, 2026-12-01) were other tests (#15581, RetargetedSpring_CarriesItsVelocity); this one is new tonight.

Ngôn ngữ chính
C#
Star
1.4k
Fork
264
Merge trung bình
5 giờ 25 phút
Pull request đã merge (30 ngày)
447

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bitfoundation/bitplatform

Tất cả issue của bitfoundation/bitplatform

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.