More style fixes

This commit is contained in:
Jess Meng 2020-12-14 15:27:57 -08:00
parent 1af0f79ddf
commit 017e00eb26

View File

@ -207,14 +207,12 @@ namespace osu.Game.Tests.Visual.Online
AddStep("Click normal close button", () => clickDrawable(((TestChannelTabItem)chatOverlay.TabMap[channel1]).CloseButton.Child)); AddStep("Click normal close button", () => clickDrawable(((TestChannelTabItem)chatOverlay.TabMap[channel1]).CloseButton.Child));
AddAssert("All channels closed", () => !channelManager.JoinedChannels.Any()); AddAssert("All channels closed", () => !channelManager.JoinedChannels.Any());
} }
private void pressControlW() private void pressControlW()
{ {
AddStep("Press and hold Control", () => InputManager.PressKey(Key.ControlLeft)); AddStep("Press and hold Control", () => InputManager.PressKey(Key.ControlLeft));
AddStep("Press W", () => InputManager.Key(Key.W)); AddStep("Press W", () => InputManager.Key(Key.W));
AddStep("Release Control", () => InputManager.ReleaseKey(Key.ControlLeft)); AddStep("Release Control", () => InputManager.ReleaseKey(Key.ControlLeft));
} }
[Test] [Test]
public void TestCtrlWShortcut() public void TestCtrlWShortcut()
{ {