mirror of
https://github.com/osukey/osukey.git
synced 2025-05-31 02:17:34 +09:00
Fixed formatting for tests
This commit is contained in:
parent
ccbf6db810
commit
9cb0ed3b8f
@ -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()
|
||||||
{
|
{
|
||||||
@ -228,7 +226,6 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
AddStep("Select channel 2", () => clickDrawable(chatOverlay.TabMap[channel2]));
|
AddStep("Select channel 2", () => clickDrawable(chatOverlay.TabMap[channel2]));
|
||||||
|
|
||||||
pressControlW();
|
pressControlW();
|
||||||
|
|
||||||
// Channel 2 should be closed
|
// Channel 2 should be closed
|
||||||
AddAssert("channel 1 open", () => channelManager.JoinedChannels.Contains(channel1));
|
AddAssert("channel 1 open", () => channelManager.JoinedChannels.Contains(channel1));
|
||||||
AddAssert("channel 2 closed", () => !channelManager.JoinedChannels.Contains(channel2));
|
AddAssert("channel 2 closed", () => !channelManager.JoinedChannels.Contains(channel2));
|
||||||
@ -237,10 +234,8 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
AddStep("Select channel 1", () => clickDrawable(chatOverlay.TabMap[channel1]));
|
AddStep("Select channel 1", () => clickDrawable(chatOverlay.TabMap[channel1]));
|
||||||
|
|
||||||
pressControlW();
|
pressControlW();
|
||||||
|
|
||||||
// Channel 1 and channel 2 should be closed
|
// Channel 1 and channel 2 should be closed
|
||||||
AddAssert("channel 1 closed", () => !channelManager.JoinedChannels.Contains(channel1));
|
AddAssert("All channels closed", () => !channelManager.JoinedChannels.Any());
|
||||||
AddAssert("channel 2 closed", () => !channelManager.JoinedChannels.Contains(channel2));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void pressControlT()
|
private void pressControlT()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user