mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Merge remote-tracking branch 'origin/not-available-to-download' into not-available-to-download
This commit is contained in:
@ -73,8 +73,6 @@ namespace osu.Game.Tests.Visual.Online
|
||||
normal.OnlineInfo.HasStoryboard = true;
|
||||
|
||||
var undownloadable = getUndownloadableBeatmapSet(ruleset);
|
||||
TestDirectGridPanel undownloadableGridPanel;
|
||||
TestDirectListPanel undownloadableListPanel;
|
||||
|
||||
Child = new BasicScrollContainer
|
||||
{
|
||||
@ -90,34 +88,11 @@ namespace osu.Game.Tests.Visual.Online
|
||||
{
|
||||
new DirectGridPanel(normal),
|
||||
new DirectListPanel(normal),
|
||||
undownloadableGridPanel = new TestDirectGridPanel(undownloadable),
|
||||
undownloadableListPanel = new TestDirectListPanel(undownloadable),
|
||||
new DirectGridPanel(undownloadable),
|
||||
new DirectListPanel(undownloadable),
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
AddAssert("is download button disabled on second grid panel", () => !undownloadableGridPanel.IsDownloadButtonEnabled);
|
||||
AddAssert("is download button disabled on second list panel", () => !undownloadableListPanel.IsDownloadButtonEnabled);
|
||||
}
|
||||
|
||||
private class TestDirectGridPanel : DirectGridPanel
|
||||
{
|
||||
public bool IsDownloadButtonEnabled => DownloadButton.Enabled.Value;
|
||||
|
||||
public TestDirectGridPanel(BeatmapSetInfo beatmap)
|
||||
: base(beatmap)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
private class TestDirectListPanel : DirectListPanel
|
||||
{
|
||||
public bool IsDownloadButtonEnabled => DownloadButton.Enabled.Value;
|
||||
|
||||
public TestDirectListPanel(BeatmapSetInfo beatmap)
|
||||
: base(beatmap)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user