mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +00:00
Add failing test showing lifetime not recomputed with pooled objects
This commit is contained in:
parent
971ca39826
commit
b88e5a31ea
@ -90,6 +90,20 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
assertChildPosition(5);
|
||||
}
|
||||
|
||||
[TestCase("pooled")]
|
||||
[TestCase("non-pooled")]
|
||||
public void TestLifetimeRecomputedWhenTimeRangeChanges(string pooled)
|
||||
{
|
||||
var beatmap = createBeatmap(_ => pooled == "pooled" ? new TestPooledHitObject() : new TestHitObject());
|
||||
beatmap.ControlPointInfo.Add(0, new TimingControlPoint { BeatLength = time_range });
|
||||
createTest(beatmap);
|
||||
|
||||
assertDead(3);
|
||||
|
||||
AddStep("increase time range", () => drawableRuleset.TimeRange.Value = 3 * time_range);
|
||||
assertPosition(3, 1);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestRelativeBeatLengthScaleSingleTimingPoint()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user