mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
Rename variable
This commit is contained in:
@ -20,7 +20,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
[Cached]
|
[Cached]
|
||||||
private GameplayClock gameplayClock = new GameplayClock(new FramedClock());
|
private GameplayClock gameplayClock = new GameplayClock(new FramedClock());
|
||||||
|
|
||||||
private SkinnableSound skinnableSounds;
|
private SkinnableSound skinnableSound;
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void SetUp()
|
public void SetUp()
|
||||||
@ -33,7 +33,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
skinnableSounds = new SkinnableSound(new SampleInfo("normal-sliderslide"))
|
skinnableSound = new SkinnableSound(new SampleInfo("normal-sliderslide"))
|
||||||
{
|
{
|
||||||
Looping = true
|
Looping = true
|
||||||
}
|
}
|
||||||
@ -48,13 +48,13 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
DrawableSample sample = null;
|
DrawableSample sample = null;
|
||||||
AddStep("start sample", () =>
|
AddStep("start sample", () =>
|
||||||
{
|
{
|
||||||
skinnableSounds.Play();
|
skinnableSound.Play();
|
||||||
sample = skinnableSounds.ChildrenOfType<DrawableSample>().First();
|
sample = skinnableSound.ChildrenOfType<DrawableSample>().First();
|
||||||
});
|
});
|
||||||
|
|
||||||
AddUntilStep("wait for sample to start playing", () => sample.Playing);
|
AddUntilStep("wait for sample to start playing", () => sample.Playing);
|
||||||
|
|
||||||
AddStep("stop sample", () => skinnableSounds.Stop());
|
AddStep("stop sample", () => skinnableSound.Stop());
|
||||||
|
|
||||||
AddUntilStep("wait for sample to stop playing", () => !sample.Playing);
|
AddUntilStep("wait for sample to stop playing", () => !sample.Playing);
|
||||||
|
|
||||||
@ -71,8 +71,8 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
DrawableSample sample = null;
|
DrawableSample sample = null;
|
||||||
AddStep("start sample", () =>
|
AddStep("start sample", () =>
|
||||||
{
|
{
|
||||||
skinnableSounds.Play();
|
skinnableSound.Play();
|
||||||
sample = skinnableSounds.ChildrenOfType<DrawableSample>().First();
|
sample = skinnableSound.ChildrenOfType<DrawableSample>().First();
|
||||||
});
|
});
|
||||||
|
|
||||||
AddUntilStep("wait for sample to start playing", () => sample.Playing);
|
AddUntilStep("wait for sample to start playing", () => sample.Playing);
|
||||||
|
Reference in New Issue
Block a user