mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 12:42: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);
|
||||
});
|
||||
|
||||
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 TestPlayer CreatePlayer(Ruleset ruleset)
|
||||
|
@ -33,8 +33,8 @@ namespace osu.Game.Tests.Visual
|
||||
[SetUpSteps]
|
||||
public virtual void SetUpSteps() => addExitAllScreensStep();
|
||||
|
||||
// [TearDownSteps]
|
||||
// public virtual void TearDownSteps() => addExitAllScreensStep();
|
||||
[TearDownSteps]
|
||||
public virtual void TearDownSteps() => addExitAllScreensStep();
|
||||
|
||||
private void addExitAllScreensStep()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user