mirror of https://github.com/ppy/osu
Revert "Revert "Fix TestSceneFruitRandomness""
This reverts commit 82de7385d1
.
This commit is contained in:
parent
5bc11ed358
commit
c82e997644
|
@ -26,6 +26,8 @@ public TestSceneFruitRandomness()
|
|||
AddSliderStep("start time", 500, 600, 0, x =>
|
||||
{
|
||||
drawableFruit.HitObject.StartTime = drawableBanana.HitObject.StartTime = x;
|
||||
drawableFruit.RefreshStateTransforms();
|
||||
drawableBanana.RefreshStateTransforms();
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -44,6 +46,8 @@ public void TestFruitRandomness()
|
|||
AddStep("Initialize start time", () =>
|
||||
{
|
||||
drawableFruit.HitObject.StartTime = drawableBanana.HitObject.StartTime = initial_start_time;
|
||||
drawableFruit.RefreshStateTransforms();
|
||||
drawableBanana.RefreshStateTransforms();
|
||||
|
||||
fruitRotation = drawableFruit.DisplayRotation;
|
||||
bananaRotation = drawableBanana.DisplayRotation;
|
||||
|
@ -54,6 +58,8 @@ public void TestFruitRandomness()
|
|||
AddStep("change start time", () =>
|
||||
{
|
||||
drawableFruit.HitObject.StartTime = drawableBanana.HitObject.StartTime = another_start_time;
|
||||
drawableFruit.RefreshStateTransforms();
|
||||
drawableBanana.RefreshStateTransforms();
|
||||
});
|
||||
|
||||
AddAssert("fruit rotation is changed", () => drawableFruit.DisplayRotation != fruitRotation);
|
||||
|
@ -64,6 +70,8 @@ public void TestFruitRandomness()
|
|||
AddStep("reset start time", () =>
|
||||
{
|
||||
drawableFruit.HitObject.StartTime = drawableBanana.HitObject.StartTime = initial_start_time;
|
||||
drawableFruit.RefreshStateTransforms();
|
||||
drawableBanana.RefreshStateTransforms();
|
||||
});
|
||||
|
||||
AddAssert("rotation and size restored", () =>
|
||||
|
|
Loading…
Reference in New Issue