mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:02:55 +08:00
Add test coverage of failure scenario
This commit is contained in:
parent
8e3fe090f3
commit
68402bfd11
@ -24,6 +24,11 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
Image = @"https://assets.ppy.sh/main-menu/wf2023-vote@2x.png",
|
||||
Url = @"https://osu.ppy.sh/community/contests/189",
|
||||
});
|
||||
AddStep("set title with nonexistent image", () => Game.ChildrenOfType<SystemTitle>().Single().Current.Value = new APISystemTitle
|
||||
{
|
||||
Image = @"https://test.invalid/@2x", // .invalid TLD reserved by https://datatracker.ietf.org/doc/html/rfc2606#section-2
|
||||
Url = @"https://osu.ppy.sh/community/contests/189",
|
||||
});
|
||||
AddStep("unset system title", () => Game.ChildrenOfType<SystemTitle>().Single().Current.Value = null);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user