mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +08:00
Add test coverage of skin lookups failing when @2x
and extension are present
This commit is contained in:
parent
c997d0fcf0
commit
b7f8716de9
@ -69,6 +69,20 @@ namespace osu.Game.Tests.NonVisual.Skinning
|
||||
"Gameplay/osu/followpoint",
|
||||
"followpoint", 1
|
||||
},
|
||||
new object[]
|
||||
{
|
||||
// Looking up a filename with extension specified should work.
|
||||
new[] { "followpoint.png" },
|
||||
"followpoint.png",
|
||||
"followpoint.png", 1
|
||||
},
|
||||
new object[]
|
||||
{
|
||||
// Looking up a filename with extension specified should also work with @2x sprites.
|
||||
new[] { "followpoint@2x.png" },
|
||||
"followpoint.png",
|
||||
"followpoint@2x.png", 2
|
||||
},
|
||||
};
|
||||
|
||||
[TestCaseSource(nameof(fallbackTestCases))]
|
||||
|
Loading…
Reference in New Issue
Block a user