mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 14:02:55 +08:00
add test coverage
This commit is contained in:
parent
a5bc769243
commit
2b0e82be40
@ -88,6 +88,31 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
AddAssert("value is less than default", () => hitErrorMeter.JudgementLineThickness.Value < hitErrorMeter.JudgementLineThickness.Default);
|
AddAssert("value is less than default", () => hitErrorMeter.JudgementLineThickness.Value < hitErrorMeter.JudgementLineThickness.Default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestComponentsDeselectedOnSkinEditorHide()
|
||||||
|
{
|
||||||
|
advanceToSongSelect();
|
||||||
|
openSkinEditor();
|
||||||
|
switchToGameplayScene();
|
||||||
|
AddStep("select all components", () =>
|
||||||
|
{
|
||||||
|
InputManager.PressKey(Key.ControlLeft);
|
||||||
|
InputManager.Key(Key.A);
|
||||||
|
InputManager.ReleaseKey(Key.ControlLeft);
|
||||||
|
});
|
||||||
|
|
||||||
|
AddStep("toggle skin editor", () =>
|
||||||
|
{
|
||||||
|
InputManager.PressKey(Key.ControlLeft);
|
||||||
|
InputManager.PressKey(Key.ShiftLeft);
|
||||||
|
InputManager.Key(Key.S);
|
||||||
|
InputManager.ReleaseKey(Key.ControlLeft);
|
||||||
|
InputManager.ReleaseKey(Key.ShiftLeft);
|
||||||
|
});
|
||||||
|
|
||||||
|
AddUntilStep("no components selected", () => skinEditor.SelectedComponents.Count == 0);
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestAutoplayCompatibleModsRetainedOnEnteringGameplay()
|
public void TestAutoplayCompatibleModsRetainedOnEnteringGameplay()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user