1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 07:13:43 +08:00

Fix test to work around timing

This commit is contained in:
Susko3
2025-02-15 18:05:34 +01:00
Unverified
parent c150a14eb4
commit 3b52fca4e8
@@ -600,11 +600,12 @@ namespace osu.Game.Rulesets.Osu.Tests
[Test]
public void TestMousePositionPriority()
{
moveMouseTo(TouchSource.Touch1);
checkPosition(TouchSource.Touch1);
AddStep("move mouse and touch shortly after", () =>
{
InputManager.MoveMouseTo(getSanePositionForSource(TouchSource.Touch1));
InputManager.BeginTouch(new Touch(TouchSource.Touch2, getSanePositionForSource(TouchSource.Touch2)));
});
// touch at a different position
beginTouch(TouchSource.Touch2);
endTouch(TouchSource.Touch2);
checkPosition(TouchSource.Touch1);