mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +03:00
adding test case for showing html entities are processed
This commit is contained in:
parent
cfb1e09d64
commit
ead8cec4a6
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue