mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 18:35:26 +08:00
Remove duplicated test case
This commit is contained in:
parent
a0543d97bd
commit
4152b4e523
@ -120,21 +120,6 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
AddUntilStep("is not visible", () => !chatDisplay.IsPresent);
|
AddUntilStep("is not visible", () => !chatDisplay.IsPresent);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
|
||||||
public void TestFocusToggleViaAction()
|
|
||||||
{
|
|
||||||
AddStep("set not expanded", () => chatDisplay.Expanded.Value = false);
|
|
||||||
AddUntilStep("is not visible", () => !chatDisplay.IsPresent);
|
|
||||||
|
|
||||||
AddStep("press enter", () => InputManager.Key(Key.Enter));
|
|
||||||
assertChatFocused(true);
|
|
||||||
AddUntilStep("is visible", () => chatDisplay.IsPresent);
|
|
||||||
|
|
||||||
AddStep("press enter", () => InputManager.Key(Key.Enter));
|
|
||||||
assertChatFocused(false);
|
|
||||||
AddUntilStep("is not visible", () => !chatDisplay.IsPresent);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void assertChatFocused(bool isFocused) =>
|
private void assertChatFocused(bool isFocused) =>
|
||||||
AddAssert($"chat {(isFocused ? "focused" : "not focused")}", () => textBox.HasFocus == isFocused);
|
AddAssert($"chat {(isFocused ? "focused" : "not focused")}", () => textBox.HasFocus == isFocused);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user