-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from andy840119/slave/micrphone-status
Implement microphone status preview.
- Loading branch information
Showing
13 changed files
with
307 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
osu.Game.Rulesets.Karaoke.Tests/UI/TestCaseSaitenStatus.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using NUnit.Framework; | ||
using osu.Framework.Graphics; | ||
using osu.Game.Rulesets.Karaoke.UI.Components; | ||
using osu.Game.Tests.Visual; | ||
|
||
namespace osu.Game.Rulesets.Karaoke.Tests.UI | ||
{ | ||
[TestFixture] | ||
public class TestCaseSaitenStatus : OsuTestScene | ||
{ | ||
[TestCase(SaitenStatusMode.AndroidMicrophonePermissionDeclined)] | ||
[TestCase(SaitenStatusMode.AndroidDoesNotSupported)] | ||
[TestCase(SaitenStatusMode.IOSMicrophonePermissionDeclined)] | ||
[TestCase(SaitenStatusMode.IOSDoesNotSupported)] | ||
[TestCase(SaitenStatusMode.OSXMicrophonePermissionDeclined)] | ||
[TestCase(SaitenStatusMode.OSXDoesNotSupported)] | ||
[TestCase(SaitenStatusMode.WindowsMicrophonePermissionDeclined)] | ||
[TestCase(SaitenStatusMode.NoMicrophoneDevice)] | ||
[TestCase(SaitenStatusMode.NotSaitening)] | ||
[TestCase(SaitenStatusMode.AutoPlay)] | ||
[TestCase(SaitenStatusMode.Edit)] | ||
[TestCase(SaitenStatusMode.Saitening)] | ||
[TestCase(SaitenStatusMode.NotInitialized)] | ||
public void TestMode(SaitenStatusMode mode) | ||
{ | ||
AddStep("create mod display", () => | ||
{ | ||
Child = new SaitenStatus(mode) | ||
{ | ||
Anchor = Anchor.Centre, | ||
Origin = Anchor.Centre | ||
}; | ||
}); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.