Skip to content

Commit

Permalink
Fix the test case broken.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Apr 21, 2023
1 parent df5c75d commit e8bd79e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions osu.Game.Rulesets.Karaoke.Tests/Skinning/TestSceneLyric.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
using osu.Framework.Graphics.Sprites;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Rulesets.Karaoke.Beatmaps.Stages.Preview;
using osu.Game.Rulesets.Karaoke.Configuration;
using osu.Game.Rulesets.Karaoke.Objects;
using osu.Game.Rulesets.Karaoke.Objects.Drawables;
using osu.Game.Rulesets.Karaoke.Objects.Stages.Preview;
using osu.Game.Rulesets.Mods;

namespace osu.Game.Rulesets.Karaoke.Tests.Skinning;
Expand Down Expand Up @@ -83,6 +85,18 @@ private Drawable testSingle(double timeOffset = 0)
Text = "ke"
}
},
EffectApplier = new LyricPreviewStageEffectApplier(new[]
{
new PreviewLyricLayout(1)
{
StartTime = startTime,
EndTime = startTime + duration,
Timings = new Dictionary<int, double>
{
{ 0, startTime }
}
}
}, new PreviewStageDefinition())
};

lyric.Translates.Add(cultureInfo, "karaoke");
Expand Down

0 comments on commit e8bd79e

Please sign in to comment.