Skip to content

Commit

Permalink
Add more testability for song bar
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Aug 31, 2023
1 parent 91c3ae4 commit 34b2798
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions osu.Game.Tournament.Tests/Components/TestSceneSongBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,14 @@ public void TestSongBar()

songBar.Beatmap = new TournamentBeatmap(beatmap);
});

AddStep("set mods to HR", () => songBar.Mods = LegacyMods.HardRock);
AddStep("set mods to DT", () => songBar.Mods = LegacyMods.DoubleTime);
AddStep("unset mods", () => songBar.Mods = LegacyMods.None);

AddToggleStep("toggle expanded", expanded => songBar.Expanded = expanded);

AddStep("set null beatmap", () => songBar.Beatmap = null);
}
}
}

0 comments on commit 34b2798

Please sign in to comment.