add wide image test

This commit is contained in:
Gagah Pangeran Rosfatiputra
2021-06-28 20:50:29 +07:00
parent ab977d91f0
commit 0e29ae037b

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;