mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 08:22:56 +08:00
fix formating in SeekOnNote test
This commit is contained in:
parent
55e9a71f38
commit
025061ba66
@ -37,20 +37,17 @@ namespace osu.Game.Rulesets.Mania.Tests.Editor
|
|||||||
public void TestSeekOnNotePlacement()
|
public void TestSeekOnNotePlacement()
|
||||||
{
|
{
|
||||||
AddStep("Seek to 1935", () => EditorClock.Seek(1935));
|
AddStep("Seek to 1935", () => EditorClock.Seek(1935));
|
||||||
AddStep("Change seek setting to true", () => config.SetValue(OsuSetting.EditorSeekToHitobject, true));
|
AddStep("Change seek setting to true", () => config.SetValue(OsuSetting.EditorSeekToHitObject, true));
|
||||||
seekSetup();
|
seekSetup();
|
||||||
AddUntilStep("Wait for seeking to end", () => !EditorClock.IsSeeking);
|
AddUntilStep("Wait for seeking to end", () => !EditorClock.IsSeeking);
|
||||||
AddAssert("Seeked to object", () =>
|
AddAssert("Seeked to object", () => EditorClock.CurrentTimeAccurate == 2287.1875);
|
||||||
{
|
|
||||||
return EditorClock.CurrentTimeAccurate == 2287.1875;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestNoSeekOnNotePlacement()
|
public void TestNoSeekOnNotePlacement()
|
||||||
{
|
{
|
||||||
AddStep("Seek to 1935", () => EditorClock.Seek(1935));
|
AddStep("Seek to 1935", () => EditorClock.Seek(1935));
|
||||||
AddStep("Change seek setting to false", () => config.SetValue(OsuSetting.EditorSeekToHitobject, false));
|
AddStep("Change seek setting to false", () => config.SetValue(OsuSetting.EditorSeekToHitObject, false));
|
||||||
seekSetup();
|
seekSetup();
|
||||||
AddAssert("Not seeking", () => !EditorClock.IsSeeking);
|
AddAssert("Not seeking", () => !EditorClock.IsSeeking);
|
||||||
AddAssert("Not seeked to object", () => EditorClock.CurrentTime == 1935);
|
AddAssert("Not seeked to object", () => EditorClock.CurrentTime == 1935);
|
||||||
|
Loading…
Reference in New Issue
Block a user