Pretty-ifying test case.

This commit is contained in:
smoogipooo
2017-08-24 17:50:22 +09:00
parent a863eb2a2f
commit c39bb6e647

View File

@ -20,13 +20,11 @@ namespace osu.Desktop.Tests.Visual
{ {
public TestCaseEditorMenuBar() public TestCaseEditorMenuBar()
{ {
Add(new Container Add(new MenuBar
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Width = 500,
Child = new EditorMenuBar
{ {
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Y = 50,
Items = new[] Items = new[]
{ {
new EditorMenuBarItem("File") new EditorMenuBarItem("File")
@ -89,14 +87,9 @@ namespace osu.Desktop.Tests.Visual
} }
}, },
} }
}
}); });
} }
private class EditorMenuBar : MenuBar
{
}
private class EditorMenuBarItem : MenuBarItem private class EditorMenuBarItem : MenuBarItem
{ {
private const int fade_duration = 250; private const int fade_duration = 250;