mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-23 08:10:15 +01:00
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
Block a user