mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 03:43:01 +08:00
Fix some failing tests
This commit is contained in:
parent
8e9377914d
commit
3fc9990411
@ -7,6 +7,7 @@ using osu.Framework.Input;
|
|||||||
using osu.Framework.Testing;
|
using osu.Framework.Testing;
|
||||||
using osu.Framework.Utils;
|
using osu.Framework.Utils;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
|
using osu.Game.Rulesets.Objects;
|
||||||
using osu.Game.Rulesets.Osu.Objects;
|
using osu.Game.Rulesets.Osu.Objects;
|
||||||
using osu.Game.Rulesets.UI;
|
using osu.Game.Rulesets.UI;
|
||||||
using osu.Game.Screens.Edit;
|
using osu.Game.Screens.Edit;
|
||||||
@ -29,7 +30,7 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
|
|||||||
|
|
||||||
private Slider? slider => editorBeatmap.HitObjects.OfType<Slider>().FirstOrDefault();
|
private Slider? slider => editorBeatmap.HitObjects.OfType<Slider>().FirstOrDefault();
|
||||||
|
|
||||||
private TimelineHitObjectBlueprint blueprint => editor.ChildrenOfType<TimelineHitObjectBlueprint>().FirstOrDefault()!;
|
private TimelineHitObjectBlueprint blueprint => editor.ChildrenOfType<TimelineHitObjectBlueprint>().FirstOrDefault(b => b.Item.GetEndTime() != b.Item.StartTime)!;
|
||||||
|
|
||||||
private DifficultyPointPiece difficultyPointPiece => blueprint.ChildrenOfType<DifficultyPointPiece>().First();
|
private DifficultyPointPiece difficultyPointPiece => blueprint.ChildrenOfType<DifficultyPointPiece>().First();
|
||||||
|
|
||||||
|
@ -22,7 +22,8 @@ namespace osu.Game.Tests.Visual.Menus
|
|||||||
{
|
{
|
||||||
var setInfo = beatmaps.QueryBeatmapSet(b => b.Protected && b.Hash == IntroChristmas.CHRISTMAS_BEATMAP_SET_HASH);
|
var setInfo = beatmaps.QueryBeatmapSet(b => b.Protected && b.Hash == IntroChristmas.CHRISTMAS_BEATMAP_SET_HASH);
|
||||||
|
|
||||||
Beatmap.Value = beatmaps.GetWorkingBeatmap(setInfo!.Value.Beatmaps.First());
|
if (setInfo != null)
|
||||||
|
Beatmap.Value = beatmaps.GetWorkingBeatmap(setInfo.Value.Beatmaps.First());
|
||||||
});
|
});
|
||||||
|
|
||||||
AddStep("create lighting", () => Child = new MainMenuSeasonalLighting());
|
AddStep("create lighting", () => Child = new MainMenuSeasonalLighting());
|
||||||
|
@ -12,6 +12,7 @@ using osu.Framework.Audio;
|
|||||||
using osu.Framework.Audio.Sample;
|
using osu.Framework.Audio.Sample;
|
||||||
using osu.Framework.Audio.Track;
|
using osu.Framework.Audio.Track;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
|
using osu.Framework.Development;
|
||||||
using osu.Framework.Extensions;
|
using osu.Framework.Extensions;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Screens;
|
using osu.Framework.Screens;
|
||||||
@ -200,7 +201,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
PrepareMenuLoad();
|
PrepareMenuLoad();
|
||||||
LoadMenu();
|
LoadMenu();
|
||||||
|
|
||||||
if (!Debugger.IsAttached)
|
if (!Debugger.IsAttached && !DebugUtils.IsNUnitRunning)
|
||||||
{
|
{
|
||||||
notifications.Post(new SimpleErrorNotification
|
notifications.Post(new SimpleErrorNotification
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user