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

オープン
#15,619 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@msynk がすでに取り組んでいます。

2026年12月4日 から。

評価

この issue はまだ評価されていません。

説明

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.

主要言語
C#
スター
1.4k
フォーク
264
平均マージ
5時間 25分
マージ済み PR(30日)
447

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bitfoundation/bitplatform のほかの issue

bitfoundation/bitplatform の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。