1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 16:27:26 +08:00

Fix TestCaseGamefield.

This commit is contained in:
Dean Herbert 2017-02-27 18:30:10 +09:00
parent 4da09713a9
commit 21c6f66017
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -4,6 +4,7 @@
using System.Collections.Generic;
using osu.Framework.Screens.Testing;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.MathUtils;
using osu.Framework.Timing;
using osu.Game.Beatmaps;
@ -27,9 +28,6 @@ namespace osu.Desktop.VisualTests.Tests
{
base.Reset();
//ensure we are at offset 0
Clock = new FramedClock();
List<HitObject> objects = new List<HitObject>();
int time = 500;
@ -51,6 +49,13 @@ namespace osu.Desktop.VisualTests.Tests
};
Add(new Drawable[]
{
new Container
{
RelativeSizeAxes = Axes.Both,
//ensure we are at offset 0
Clock = new FramedClock(),
Children = new Drawable[]
{
new OsuHitRenderer
{
@ -80,6 +85,8 @@ namespace osu.Desktop.VisualTests.Tests
Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight
}
}
}
});
}
}