mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Merge pull request #599 from EVAST9919/testcase_fix
Fix Pause/Fail testcase
This commit is contained in:
@ -8,7 +8,7 @@ using osu.Game.Screens.Play;
|
|||||||
|
|
||||||
namespace osu.Desktop.VisualTests.Tests
|
namespace osu.Desktop.VisualTests.Tests
|
||||||
{
|
{
|
||||||
internal class TestCaseInGameOverlays : TestCase
|
internal class TestCaseMenuOverlays : TestCase
|
||||||
{
|
{
|
||||||
public override string Description => @"Tests pause and fail overlays";
|
public override string Description => @"Tests pause and fail overlays";
|
||||||
|
|
||||||
@ -20,23 +20,19 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
{
|
{
|
||||||
base.Reset();
|
base.Reset();
|
||||||
|
|
||||||
pauseOverlay = new PauseOverlay
|
retryCount = 0;
|
||||||
|
|
||||||
|
Add(pauseOverlay = new PauseOverlay
|
||||||
{
|
{
|
||||||
Depth = -1,
|
|
||||||
OnResume = () => Logger.Log(@"Resume"),
|
OnResume = () => Logger.Log(@"Resume"),
|
||||||
OnRetry = () => Logger.Log(@"Retry"),
|
OnRetry = () => Logger.Log(@"Retry"),
|
||||||
OnQuit = () => Logger.Log(@"Quit"),
|
OnQuit = () => Logger.Log(@"Quit"),
|
||||||
};
|
});
|
||||||
|
Add(failOverlay = new FailOverlay
|
||||||
failOverlay = new FailOverlay
|
|
||||||
{
|
{
|
||||||
Depth = -1,
|
|
||||||
OnRetry = () => Logger.Log(@"Retry"),
|
OnRetry = () => Logger.Log(@"Retry"),
|
||||||
OnQuit = () => Logger.Log(@"Quit"),
|
OnQuit = () => Logger.Log(@"Quit"),
|
||||||
};
|
});
|
||||||
|
|
||||||
Add(pauseOverlay);
|
|
||||||
Add(failOverlay);
|
|
||||||
|
|
||||||
AddStep(@"Pause", delegate {
|
AddStep(@"Pause", delegate {
|
||||||
if(failOverlay.State == Visibility.Visible)
|
if(failOverlay.State == Visibility.Visible)
|
||||||
@ -58,8 +54,6 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
pauseOverlay.Retries = retryCount;
|
pauseOverlay.Retries = retryCount;
|
||||||
failOverlay.Retries = retryCount;
|
failOverlay.Retries = retryCount;
|
||||||
});
|
});
|
||||||
|
|
||||||
retryCount = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -189,7 +189,7 @@
|
|||||||
<Compile Include="Tests\TestCaseChatDisplay.cs" />
|
<Compile Include="Tests\TestCaseChatDisplay.cs" />
|
||||||
<Compile Include="Tests\TestCaseDrawings.cs" />
|
<Compile Include="Tests\TestCaseDrawings.cs" />
|
||||||
<Compile Include="Tests\TestCaseGamefield.cs" />
|
<Compile Include="Tests\TestCaseGamefield.cs" />
|
||||||
<Compile Include="Tests\TestCaseInGameOverlays.cs" />
|
<Compile Include="Tests\TestCaseMenuOverlays.cs" />
|
||||||
<Compile Include="Tests\TestCaseMusicController.cs" />
|
<Compile Include="Tests\TestCaseMusicController.cs" />
|
||||||
<Compile Include="Tests\TestCaseNotificationManager.cs" />
|
<Compile Include="Tests\TestCaseNotificationManager.cs" />
|
||||||
<Compile Include="Tests\TestCasePlayer.cs" />
|
<Compile Include="Tests\TestCasePlayer.cs" />
|
||||||
|
Reference in New Issue
Block a user