adding test case for showing html entities are processed
This commit is contained in:
parent
cfb1e09d64
commit
ead8cec4a6
|
@ -71,5 +71,12 @@ class EventHtmlRendererTest {
|
|||
result shouldBeEqualTo "[code][italic]italic[/italic] [bold]bold[/bold][/code]"
|
||||
}
|
||||
|
||||
@Test
|
||||
fun processesHtmlEntities() {
|
||||
val result = """& < > ' """".renderAsTestSpan()
|
||||
|
||||
result shouldBeEqualTo """& < > ' """"
|
||||
}
|
||||
|
||||
private fun String.renderAsTestSpan() = renderer.render(this).toSpannable().toTestSpan()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue