This commit is contained in:
Dan Balasescu 2024-08-20 15:20:48 +09:00
parent 180c4a0248
commit 4a19ed7472
No known key found for this signature in database
1 changed files with 15 additions and 0 deletions

View File

@ -88,6 +88,21 @@ public void TestLegacyDisjointCursorTrailViaNoCursor()
AddAssert("trail is disjoint", () => this.ChildrenOfType<LegacyCursorTrail>().Single().DisjointTrail, () => Is.True);
}
[Test]
public void TestClickExpand()
{
createTest(() => new Container
{
RelativeSizeAxes = Axes.Both,
Scale = new Vector2(10),
Child = new CursorTrail(),
});
AddStep("expand", () => this.ChildrenOfType<CursorTrail>().Single().NewPartScale = new Vector2(3));
AddWaitStep("let the cursor trail draw a bit", 5);
AddStep("contract", () => this.ChildrenOfType<CursorTrail>().Single().NewPartScale = Vector2.One);
}
private void createTest(Func<Drawable> createContent) => AddStep("create trail", () =>
{
Clear();