Fix test timing regressions due to increased step count

This commit is contained in:
Dean Herbert 2019-06-24 11:00:00 +09:00
parent 6449734a97
commit 4ec064e179
1 changed files with 11 additions and 4 deletions

View File

@ -5,6 +5,7 @@
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Testing;
using osu.Game.Input;
using osuTK;
using osuTK.Graphics;
@ -19,11 +20,17 @@ public class TestSceneIdleTracker : ManualInputManagerTestScene
private readonly IdleTrackingBox box3;
private readonly IdleTrackingBox box4;
[SetUpSteps]
public void SetUpSteps()
{
AddStep("reset mouse position", () => InputManager.MoveMouseTo(Vector2.Zero));
}
public TestSceneIdleTracker()
{
Children = new Drawable[]
{
box1 = new IdleTrackingBox(1000)
box1 = new IdleTrackingBox(2000)
{
Name = "TopLeft",
RelativeSizeAxes = Axes.Both,
@ -31,7 +38,7 @@ public TestSceneIdleTracker()
Anchor = Anchor.TopLeft,
Origin = Anchor.TopLeft,
},
box2 = new IdleTrackingBox(2000)
box2 = new IdleTrackingBox(4000)
{
Name = "TopRight",
RelativeSizeAxes = Axes.Both,
@ -39,7 +46,7 @@ public TestSceneIdleTracker()
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
},
box3 = new IdleTrackingBox(3000)
box3 = new IdleTrackingBox(6000)
{
Name = "BottomLeft",
RelativeSizeAxes = Axes.Both,
@ -47,7 +54,7 @@ public TestSceneIdleTracker()
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
},
box4 = new IdleTrackingBox(4000)
box4 = new IdleTrackingBox(8000)
{
Name = "BottomRight",
RelativeSizeAxes = Axes.Both,