mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 21:23:22 +08:00
Add failing test showing deserialise failing with some skins
This commit is contained in:
parent
1e39af8ac5
commit
3943fe96f4
BIN
osu.Game.Tests/Resources/Archives/argon-invalid-drawable.osk
Normal file
BIN
osu.Game.Tests/Resources/Archives/argon-invalid-drawable.osk
Normal file
Binary file not shown.
@ -12,6 +12,7 @@ using osu.Framework.IO.Stores;
|
|||||||
using osu.Game.Audio;
|
using osu.Game.Audio;
|
||||||
using osu.Game.IO;
|
using osu.Game.IO;
|
||||||
using osu.Game.IO.Archives;
|
using osu.Game.IO.Archives;
|
||||||
|
using osu.Game.Screens.Menu;
|
||||||
using osu.Game.Screens.Play.HUD;
|
using osu.Game.Screens.Play.HUD;
|
||||||
using osu.Game.Screens.Play.HUD.HitErrorMeters;
|
using osu.Game.Screens.Play.HUD.HitErrorMeters;
|
||||||
using osu.Game.Skinning;
|
using osu.Game.Skinning;
|
||||||
@ -125,6 +126,18 @@ namespace osu.Game.Tests.Skins
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestDeserialiseInvalidDrawables()
|
||||||
|
{
|
||||||
|
using (var stream = TestResources.OpenResource("Archives/argon-invalid-drawable.osk"))
|
||||||
|
using (var storage = new ZipArchiveReader(stream))
|
||||||
|
{
|
||||||
|
var skin = new TestSkin(new SkinInfo(), null, storage);
|
||||||
|
|
||||||
|
Assert.That(skin.LayoutInfos.Any(kvp => kvp.Value.AllDrawables.Any(d => d.Type == typeof(StarFountain))), Is.False);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestDeserialiseModifiedClassic()
|
public void TestDeserialiseModifiedClassic()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user