mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 06:13:04 +08: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);
|
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]
|
[Test]
|
||||||
public void TestRelativeBeatLengthScaleSingleTimingPoint()
|
public void TestRelativeBeatLengthScaleSingleTimingPoint()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user