Rename property

This commit is contained in:
ekrctb 2021-04-12 18:50:25 +09:00
parent 6d18b3db00
commit 359fae895f
3 changed files with 7 additions and 7 deletions

View File

@ -220,7 +220,7 @@ namespace osu.Game.Tests.NonVisual
// no frames are arrived yet
setTime(0, null);
setTime(1000, null);
Assert.IsTrue(handler.WaitingNextFrame, "Should be waiting for the first frame");
Assert.IsTrue(handler.WaitingForFrame, "Should be waiting for the first frame");
replay.Frames.Add(new TestReplayFrame(0));
replay.Frames.Add(new TestReplayFrame(1000));
@ -228,11 +228,11 @@ namespace osu.Game.Tests.NonVisual
// should always play from beginning
setTime(1000, 0);
confirmCurrentFrame(0);
Assert.IsFalse(handler.WaitingNextFrame, "Should not be waiting yet");
Assert.IsFalse(handler.WaitingForFrame, "Should not be waiting yet");
setTime(1000, 1000);
confirmCurrentFrame(1);
confirmNextFrame(1);
Assert.IsTrue(handler.WaitingNextFrame, "Should be waiting");
Assert.IsTrue(handler.WaitingForFrame, "Should be waiting");
// cannot seek beyond the last frame
setTime(1500, null);

View File

@ -83,7 +83,7 @@ namespace osu.Game.Tests.Visual.Gameplay
waitForPlayer();
AddAssert("ensure frames arrived", () => replayHandler.HasFrames);
AddUntilStep("wait for frame starvation", () => replayHandler.WaitingNextFrame);
AddUntilStep("wait for frame starvation", () => replayHandler.WaitingForFrame);
checkPaused(true);
double? pausedTime = null;
@ -92,7 +92,7 @@ namespace osu.Game.Tests.Visual.Gameplay
sendFrames();
AddUntilStep("wait for frame starvation", () => replayHandler.WaitingNextFrame);
AddUntilStep("wait for frame starvation", () => replayHandler.WaitingForFrame);
checkPaused(true);
AddAssert("time advanced", () => currentFrameStableTime > pausedTime);

View File

@ -24,7 +24,7 @@ namespace osu.Game.Rulesets.Replays
/// <summary>
/// Whether we are waiting for new frames to be received.
/// </summary>
public bool WaitingNextFrame => !replay.HasReceivedAllFrames && currentFrameIndex == Frames.Count - 1;
public bool WaitingForFrame => !replay.HasReceivedAllFrames && currentFrameIndex == Frames.Count - 1;
/// <summary>
/// The current frame of the replay.
@ -140,7 +140,7 @@ namespace osu.Game.Rulesets.Replays
frameEnd = getFrameTime(currentFrameIndex + 1);
// Pause until more frames are arrived.
if (WaitingNextFrame && frameStart < time)
if (WaitingForFrame && frameStart < time)
{
CurrentTime = frameStart;
return null;