1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 00:42:55 +08:00

add wide image test

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-06-28 20:50:29 +07:00
parent ab977d91f0
commit 0e29ae037b
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -160,6 +160,20 @@ Line after image";
});
}
[Test]
public void TestWideImageNotExceedContainer()
{
AddStep("Add image", () =>
{
markdownContainer.CurrentPath = "https://dev.ppy.sh/wiki/osu!_Program_Files/";
markdownContainer.Text = "![](img/file_structure.jpg \"The file structure of osu!'s installation folder, on Windows and macOS\")";
});
AddStep("Change container width", () =>
{
markdownContainer.Width = 0.5f;
});
}
private class TestMarkdownContainer : WikiMarkdownContainer
{
public LinkInline Link;