mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 09:27:18 +09:00
Fix chat height saving/loading test
This commit is contained in:
parent
9cb52f8879
commit
5657e7f11e
@ -133,13 +133,15 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestChatHeight()
|
public void TestChatHeight()
|
||||||
{
|
{
|
||||||
Bindable<float> configChatHeight = config.GetBindable<float>(OsuSetting.ChatDisplayHeight);
|
Bindable<float> configChatHeight = null;
|
||||||
float newHeight = 0;
|
float newHeight = 0;
|
||||||
|
|
||||||
|
AddStep("Bind config chat height", () => configChatHeight = config.GetBindable<float>(OsuSetting.ChatDisplayHeight).GetBoundCopy());
|
||||||
AddStep("Set config chat height", () => configChatHeight.Value = 0.4f);
|
AddStep("Set config chat height", () => configChatHeight.Value = 0.4f);
|
||||||
AddStep("Show overlay", () => chatOverlay.Show());
|
AddStep("Show overlay", () => chatOverlay.Show());
|
||||||
AddAssert("Overlay uses config height", () => chatOverlay.Height == 0.4f);
|
AddAssert("Overlay uses config height", () => chatOverlay.Height == 0.4f);
|
||||||
AddStep("Drag overlay to new height", () => {
|
AddStep("Drag overlay to new height", () =>
|
||||||
|
{
|
||||||
InputManager.MoveMouseTo(chatOverlayTopBar);
|
InputManager.MoveMouseTo(chatOverlayTopBar);
|
||||||
InputManager.PressButton(MouseButton.Left);
|
InputManager.PressButton(MouseButton.Left);
|
||||||
InputManager.MoveMouseTo(chatOverlayTopBar, new Vector2(0, -300));
|
InputManager.MoveMouseTo(chatOverlayTopBar, new Vector2(0, -300));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user