-
Notifications
You must be signed in to change notification settings - Fork 15
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 #89 from karaoke-dev/edge
Create edge branch
- Loading branch information
Showing
45 changed files
with
994 additions
and
135 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
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
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
36 changes: 36 additions & 0 deletions
36
osu.Game.Rulesets.Karaoke.Tests/Overlays/TestSceneKaraokeChangeLogOverlay.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,36 @@ | ||
// 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.Game.Rulesets.Karaoke.Overlays; | ||
using osu.Game.Tests.Visual; | ||
|
||
namespace osu.Game.Rulesets.Karaoke.Tests.Overlays | ||
{ | ||
[TestFixture] | ||
public class TestSceneKaraokeChangeLogOverlay : OsuTestScene | ||
{ | ||
private TestChangelogOverlay changelog; | ||
|
||
[SetUp] | ||
public void SetUp() => Schedule(() => | ||
{ | ||
Child = changelog = new TestChangelogOverlay(); | ||
}); | ||
|
||
[Test] | ||
public void ShowWithNoFetch() | ||
{ | ||
AddStep(@"Show", () => changelog.Show()); | ||
AddAssert(@"listing displayed", () => changelog.Current.Value == null); | ||
} | ||
|
||
private class TestChangelogOverlay : KaraokeChangelogOverlay | ||
{ | ||
public TestChangelogOverlay() | ||
: base("karaoke-dev") | ||
{ | ||
} | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using NUnit.Framework; | ||
using osu.Framework.Allocation; | ||
using osu.Framework.Bindables; | ||
using osu.Framework.Extensions.Color4Extensions; | ||
using osu.Framework.Graphics; | ||
using osu.Framework.Graphics.Shapes; | ||
using osu.Game.Rulesets.Karaoke.Configuration; | ||
using osu.Game.Rulesets.Karaoke.Skinning; | ||
using osu.Game.Rulesets.Karaoke.UI; | ||
using osu.Game.Rulesets.Karaoke.UI.Position; | ||
using osu.Game.Rulesets.UI.Scrolling; | ||
using osu.Game.Rulesets.UI.Scrolling.Algorithms; | ||
|
@@ -25,6 +21,7 @@ namespace osu.Game.Rulesets.Karaoke.Tests.Skinning | |
public abstract class KaraokeSkinnableColumnTestScene : KaraokeSkinnableTestScene | ||
{ | ||
protected const double START_TIME = 1000000000; | ||
protected const double DURATION = 1000000000; | ||
|
||
public const int COLUMN_NUMBER = 9; | ||
|
||
|
@@ -34,13 +31,6 @@ public abstract class KaraokeSkinnableColumnTestScene : KaraokeSkinnableTestScen | |
[Cached(Type = typeof(IPositionCalculator))] | ||
private readonly PositionCalculator positionCalculator = new PositionCalculator(COLUMN_NUMBER); | ||
|
||
public override IReadOnlyList<Type> RequiredTypes => new[] | ||
{ | ||
typeof(KaraokeRuleset), | ||
typeof(KaraokeLegacySkinTransformer), | ||
typeof(KaraokeSettingsSubsection) | ||
}; | ||
|
||
protected override Ruleset CreateRulesetForSkinProvider() => new KaraokeRuleset(); | ||
|
||
protected KaraokeSkinnableColumnTestScene() | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using NUnit.Framework; | ||
using osu.Framework.Allocation; | ||
using osu.Framework.Extensions.IEnumerableExtensions; | ||
using osu.Framework.Graphics; | ||
using osu.Framework.Graphics.Containers; | ||
using osu.Game.Rulesets.Karaoke.Objects.Drawables; | ||
using osu.Game.Rulesets.Karaoke.UI; | ||
using osu.Game.Rulesets.Karaoke.UI.Components; | ||
using osu.Game.Skinning; | ||
|
@@ -21,12 +18,6 @@ namespace osu.Game.Rulesets.Karaoke.Tests.Skinning | |
[TestFixture] | ||
public class TestSceneHitExplosion : KaraokeSkinnableColumnTestScene | ||
{ | ||
public override IReadOnlyList<Type> RequiredTypes => new[] | ||
{ | ||
typeof(DrawableNote), | ||
typeof(DrawableKaraokeHitObject), | ||
}; | ||
|
||
public TestSceneHitExplosion() | ||
{ | ||
int runCount = 0; | ||
|
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.