mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 11:35:35 +08:00
Remove pointless test coverage of DrawablePage
This commit is contained in:
parent
ee4f5c0e79
commit
d10b8c79b3
@ -10,7 +10,6 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
public class TestScenePageSelector : OsuTestScene
|
||||
{
|
||||
private readonly PageSelector pageSelector;
|
||||
private readonly PageSelectorPageButton pageSelectorPageButton;
|
||||
|
||||
public TestScenePageSelector()
|
||||
{
|
||||
@ -21,12 +20,6 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
},
|
||||
pageSelectorPageButton = new PageSelectorPageButton(1234)
|
||||
{
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
Margin = new MarginPadding { Top = 50 },
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -58,13 +51,6 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddAssert("Max is 1", () => pageSelector.MaxPages.Value == 1);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestDrawablePage()
|
||||
{
|
||||
AddStep("Select", () => pageSelectorPageButton.Selected = true);
|
||||
AddStep("Deselect", () => pageSelectorPageButton.Selected = false);
|
||||
}
|
||||
|
||||
private void setMaxPages(int maxPages) => pageSelector.MaxPages.Value = maxPages;
|
||||
|
||||
private void setCurrentPage(int currentPage) => pageSelector.CurrentPage.Value = currentPage;
|
||||
|
Loading…
Reference in New Issue
Block a user