mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 05:22:54 +08:00
TestSceneWikiMarkdownContainer: Add visual test for inline and fenced code syntax
This commit is contained in:
parent
f067a84631
commit
2454eb8cd9
@ -270,6 +270,30 @@ Phasellus eu nunc nec ligula semper fringilla. Aliquam magna neque, placerat sed
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestCodeSyntax()
|
||||||
|
{
|
||||||
|
AddStep("set content", () =>
|
||||||
|
{
|
||||||
|
markdownContainer.Text = @"
|
||||||
|
This is a paragraph containing `inline code` synatax.
|
||||||
|
Oh wow I do love the `WikiMarkdownContainer`, it is very cool!
|
||||||
|
|
||||||
|
This is a line before the fenced code block:
|
||||||
|
```csharp
|
||||||
|
public class WikiMarkdownContainer : MarkdownContainer
|
||||||
|
{
|
||||||
|
public WikiMarkdownContainer()
|
||||||
|
{
|
||||||
|
this.foo = bar;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
This is a line after the fenced code block!
|
||||||
|
";
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
private partial class TestMarkdownContainer : WikiMarkdownContainer
|
private partial class TestMarkdownContainer : WikiMarkdownContainer
|
||||||
{
|
{
|
||||||
public LinkInline Link;
|
public LinkInline Link;
|
||||||
|
Loading…
Reference in New Issue
Block a user