1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

add image test

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-05-23 16:30:41 +07:00
parent 7a8a37f4a0
commit 6585dd3a3e
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -101,6 +101,25 @@ needs_cleanup: true
});
}
[Test]
public void TestAbsoluteImage()
{
AddStep("Add absolute image", () =>
{
markdownContainer.Text = "![intro](/wiki/Interface/img/intro-screen.jpg)";
});
}
[Test]
public void TestRelativeImage()
{
AddStep("Add relative image", () =>
{
markdownContainer.CurrentPath = "Interface/";
markdownContainer.Text = "![intro](img/intro-screen.jpg)";
});
}
private class TestMarkdownContainer : WikiMarkdownContainer
{
public LinkInline Link;