mirror of
https://github.com/ppy/osu.git
synced 2024-11-20 01:32:53 +08:00
Better ensure track restarted
This commit is contained in:
parent
a9488a92a9
commit
d42c872f8f
@ -45,7 +45,7 @@ namespace osu.Game.Tests.Visual.Editor
|
|||||||
AddUntilStep("Clock stops", () => !Clock.IsRunning);
|
AddUntilStep("Clock stops", () => !Clock.IsRunning);
|
||||||
AddAssert("Clock stopped at end", () => Clock.CurrentTime == Clock.TrackLength);
|
AddAssert("Clock stopped at end", () => Clock.CurrentTime == Clock.TrackLength);
|
||||||
AddStep("Start clock again", Clock.Start);
|
AddStep("Start clock again", Clock.Start);
|
||||||
AddAssert("Clock looped", () => Clock.IsRunning && Clock.CurrentTime < Clock.TrackLength);
|
AddAssert("Clock looped to start", () => Clock.IsRunning && Clock.CurrentTime < 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user