mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Fix test compilation
This commit is contained in:
parent
6e646b12b5
commit
b9799b46fd
@ -97,7 +97,7 @@ class SpanUtilsTest : InstrumentedTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `test get binding options regular`() {
|
fun testGetBindingOptionsRegular() {
|
||||||
val string = SpannableString("Text")
|
val string = SpannableString("Text")
|
||||||
val result = spanUtils.getBindingOptions(string)
|
val result = spanUtils.getBindingOptions(string)
|
||||||
result.canUseTextFuture shouldBeEqualTo true
|
result.canUseTextFuture shouldBeEqualTo true
|
||||||
@ -105,7 +105,7 @@ class SpanUtilsTest : InstrumentedTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `test get binding options strikethrough`() {
|
fun testGetBindingOptionsStrikethrough() {
|
||||||
val string = SpannableString("Text with strikethrough")
|
val string = SpannableString("Text with strikethrough")
|
||||||
string.setSpan(StrikethroughSpan(), 10, 23, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)
|
string.setSpan(StrikethroughSpan(), 10, 23, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)
|
||||||
val result = spanUtils.getBindingOptions(string)
|
val result = spanUtils.getBindingOptions(string)
|
||||||
@ -114,7 +114,7 @@ class SpanUtilsTest : InstrumentedTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `test get binding options MetricAffectingSpan`() {
|
fun testGetBindingOptionsMetricAffectingSpan() {
|
||||||
val string = SpannableString("Emoji \uD83D\uDE2E\u200D\uD83D\uDCA8")
|
val string = SpannableString("Emoji \uD83D\uDE2E\u200D\uD83D\uDCA8")
|
||||||
val result = spanUtils.getBindingOptions(string)
|
val result = spanUtils.getBindingOptions(string)
|
||||||
result.canUseTextFuture shouldBeEqualTo false
|
result.canUseTextFuture shouldBeEqualTo false
|
||||||
|
Loading…
Reference in New Issue
Block a user