mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
Add failing test for adding collection w/ name colliding w/\ default items
This commit is contained in:
parent
41f5a6e292
commit
be16e0e538
@ -166,6 +166,29 @@ namespace osu.Game.Tests.Visual.Collections
|
||||
})));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestCollectionNameCollisionsWithBuiltInItems()
|
||||
{
|
||||
AddStep("add dropdown", () =>
|
||||
{
|
||||
Add(new CollectionDropdown
|
||||
{
|
||||
Anchor = Anchor.TopRight,
|
||||
Origin = Anchor.TopRight,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Width = 0.4f,
|
||||
});
|
||||
});
|
||||
AddStep("add two collections which collide with default items", () => Realm.Write(r => r.Add(new[]
|
||||
{
|
||||
new BeatmapCollection(name: "All beatmaps"),
|
||||
new BeatmapCollection(name: "Manage collections...")
|
||||
{
|
||||
BeatmapMD5Hashes = { beatmapManager.GetAllUsableBeatmapSets().First().Beatmaps[0].MD5Hash }
|
||||
},
|
||||
})));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestRemoveCollectionViaButton()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user