mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 00:02:54 +08:00
Revert unintentional changes
This commit is contained in:
parent
88b2a12c09
commit
c74bfd5c88
@ -21,6 +21,19 @@ namespace osu.Game.Tests.Visual
|
|||||||
AddStep("set test data", () => currentTestData = testData);
|
AddStep("set test data", () => currentTestData = testData);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
public override void TearDownSteps()
|
||||||
|
{
|
||||||
|
AddUntilStep("test passed", () =>
|
||||||
|
{
|
||||||
|
if (currentTestData == null)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return currentTestData.PassCondition?.Invoke() ?? false;
|
||||||
|
});
|
||||||
|
|
||||||
|
base.TearDownSteps();
|
||||||
|
}
|
||||||
|
|
||||||
protected sealed override IBeatmap CreateBeatmap(RulesetInfo ruleset) => currentTestData?.Beatmap ?? base.CreateBeatmap(ruleset);
|
protected sealed override IBeatmap CreateBeatmap(RulesetInfo ruleset) => currentTestData?.Beatmap ?? base.CreateBeatmap(ruleset);
|
||||||
|
|
||||||
protected sealed override TestPlayer CreatePlayer(Ruleset ruleset)
|
protected sealed override TestPlayer CreatePlayer(Ruleset ruleset)
|
||||||
|
@ -33,8 +33,8 @@ namespace osu.Game.Tests.Visual
|
|||||||
[SetUpSteps]
|
[SetUpSteps]
|
||||||
public virtual void SetUpSteps() => addExitAllScreensStep();
|
public virtual void SetUpSteps() => addExitAllScreensStep();
|
||||||
|
|
||||||
// [TearDownSteps]
|
[TearDownSteps]
|
||||||
// public virtual void TearDownSteps() => addExitAllScreensStep();
|
public virtual void TearDownSteps() => addExitAllScreensStep();
|
||||||
|
|
||||||
private void addExitAllScreensStep()
|
private void addExitAllScreensStep()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user