@@ -26,7 +26,8 @@ class InterceptInputConnectionIntegrationTest {
26
26
private val viewModel = EditorViewModel (
27
27
provideComposer = { newComposerModel() },
28
28
).also {
29
- it.htmlConverter = HtmlConverter .Factory .create(context = app,
29
+ it.htmlConverter = HtmlConverter .Factory .create(
30
+ context = app,
30
31
styleConfig = styleConfig,
31
32
mentionDisplayHandler = null ,
32
33
)
@@ -57,7 +58,7 @@ class InterceptInputConnectionIntegrationTest {
57
58
textView.text.dumpSpans(), equalTo(
58
59
listOf (
59
60
" hello: android.widget.TextView.ChangeWatcher (0-5) fl=#6553618" ,
60
- " hello: android.text.style.StyleSpan (0-5) fl=#33 " ,
61
+ " hello: android.text.style.StyleSpan (0-5) fl=#17 " ,
61
62
" hello: android.text.method.TextKeyListener (0-5) fl=#18" ,
62
63
" hello: android.text.style.UnderlineSpan (0-5) fl=#289" ,
63
64
" hello: android.view.inputmethod.ComposingText (0-5) fl=#289" ,
@@ -80,7 +81,7 @@ class InterceptInputConnectionIntegrationTest {
80
81
assertThat(
81
82
textView.text.dumpSpans(), equalTo(
82
83
baseEditedSpans.toMutableList().apply {
83
- add(1 , " world: android.text.style.StyleSpan (0-5) fl=#33 " )
84
+ add(1 , " world: android.text.style.StyleSpan (0-5) fl=#17 " )
84
85
}
85
86
)
86
87
)
@@ -97,7 +98,7 @@ class InterceptInputConnectionIntegrationTest {
97
98
assertThat(
98
99
textView.text.dumpSpans(), equalTo(
99
100
baseEditedSpans.toMutableList().apply {
100
- add(1 , " world: android.text.style.UnderlineSpan (0-5) fl=#33 " )
101
+ add(1 , " world: android.text.style.UnderlineSpan (0-5) fl=#17 " )
101
102
}
102
103
)
103
104
)
@@ -114,7 +115,7 @@ class InterceptInputConnectionIntegrationTest {
114
115
assertThat(
115
116
textView.text.dumpSpans(), equalTo(
116
117
baseEditedSpans.toMutableList().apply {
117
- add(1 , " world: android.text.style.StrikethroughSpan (0-5) fl=#33 " )
118
+ add(1 , " world: android.text.style.StrikethroughSpan (0-5) fl=#17 " )
118
119
}
119
120
)
120
121
)
@@ -131,7 +132,7 @@ class InterceptInputConnectionIntegrationTest {
131
132
assertThat(
132
133
textView.text.dumpSpans(), equalTo(
133
134
baseEditedSpans.toMutableList().apply {
134
- add(1 , " world: io.element.android.wysiwyg.view.spans.InlineCodeSpan (0-5) fl=#33 " )
135
+ add(1 , " world: io.element.android.wysiwyg.view.spans.InlineCodeSpan (0-5) fl=#17 " )
135
136
}
136
137
)
137
138
)
@@ -147,7 +148,7 @@ class InterceptInputConnectionIntegrationTest {
147
148
textView.text.dumpSpans(), equalTo(
148
149
listOf (
149
150
" hello: android.widget.TextView.ChangeWatcher (0-5) fl=#6553618" ,
150
- " hello: io.element.android.wysiwyg.view.spans.OrderedListSpan (0-5) fl=#34 " ,
151
+ " hello: io.element.android.wysiwyg.view.spans.OrderedListSpan (0-5) fl=#17 " ,
151
152
" hello: android.text.style.UnderlineSpan (0-5) fl=#289" ,
152
153
" hello: android.view.inputmethod.ComposingText (0-5) fl=#289" ,
153
154
" hello: android.text.method.TextKeyListener (0-5) fl=#18" ,
@@ -173,7 +174,7 @@ class InterceptInputConnectionIntegrationTest {
173
174
textView.text.dumpSpans().joinToString(" ,\n " ), equalTo(
174
175
"""
175
176
hello: android.widget.TextView.ChangeWatcher (0-5) fl=#6553618,
176
- hello: io.element.android.wysiwyg.view.spans.UnorderedListSpan (0-5) fl=#34 ,
177
+ hello: io.element.android.wysiwyg.view.spans.UnorderedListSpan (0-5) fl=#17 ,
177
178
hello: android.text.style.UnderlineSpan (0-5) fl=#289,
178
179
hello: android.view.inputmethod.ComposingText (0-5) fl=#289,
179
180
hello: android.text.method.TextKeyListener (0-5) fl=#18,
@@ -195,7 +196,7 @@ class InterceptInputConnectionIntegrationTest {
195
196
textView.text.dumpSpans().joinToString(" ,\n " ), equalTo(
196
197
"""
197
198
hello: android.widget.TextView.ChangeWatcher (0-5) fl=#6553618,
198
- hello: io.element.android.wysiwyg.view.spans.UnorderedListSpan (0-5) fl=#34 ,
199
+ hello: io.element.android.wysiwyg.view.spans.UnorderedListSpan (0-5) fl=#17 ,
199
200
hello: android.text.style.UnderlineSpan (0-5) fl=#289,
200
201
hello: android.view.inputmethod.ComposingText (0-5) fl=#289,
201
202
hello: android.text.method.TextKeyListener (0-5) fl=#18,
@@ -221,7 +222,7 @@ class InterceptInputConnectionIntegrationTest {
221
222
textView.text.dumpSpans().joinToString(" ,\n " ), equalTo(
222
223
"""
223
224
hello: android.widget.TextView.ChangeWatcher (0-5) fl=#6553618,
224
- hello: io.element.android.wysiwyg.view.spans.OrderedListSpan (0-5) fl=#34 ,
225
+ hello: io.element.android.wysiwyg.view.spans.OrderedListSpan (0-5) fl=#17 ,
225
226
hello: android.text.style.UnderlineSpan (0-5) fl=#289,
226
227
hello: android.view.inputmethod.ComposingText (0-5) fl=#289,
227
228
hello: android.text.method.TextKeyListener (0-5) fl=#18,
@@ -244,7 +245,7 @@ class InterceptInputConnectionIntegrationTest {
244
245
textView.text.dumpSpans(), equalTo(
245
246
listOf (
246
247
" 😋😋: android.widget.TextView.ChangeWatcher (0-4) fl=#6553618" ,
247
- " 😋😋: io.element.android.wysiwyg.view.spans.OrderedListSpan (0-4) fl=#34 " ,
248
+ " 😋😋: io.element.android.wysiwyg.view.spans.OrderedListSpan (0-4) fl=#17 " ,
248
249
" 😋😋: android.text.style.UnderlineSpan (0-4) fl=#289" ,
249
250
" 😋😋: android.view.inputmethod.ComposingText (0-4) fl=#289" ,
250
251
" 😋😋: android.text.method.TextKeyListener (0-4) fl=#18" ,
@@ -270,7 +271,7 @@ class InterceptInputConnectionIntegrationTest {
270
271
textView.text.dumpSpans(), equalTo(
271
272
listOf (
272
273
" hello: android.widget.TextView.ChangeWatcher (0-5) fl=#6553618" ,
273
- " hello: io.element.android.wysiwyg.view.spans.CodeBlockSpan (0-5) fl=#33 " ,
274
+ " hello: io.element.android.wysiwyg.view.spans.CodeBlockSpan (0-5) fl=#17 " ,
274
275
" hello: android.text.style.UnderlineSpan (0-5) fl=#289" ,
275
276
" hello: android.view.inputmethod.ComposingText (0-5) fl=#289" ,
276
277
" hello: android.text.method.TextKeyListener (0-5) fl=#18" ,
@@ -317,7 +318,7 @@ class InterceptInputConnectionIntegrationTest {
317
318
textView.text.dumpSpans(), equalTo(
318
319
listOf (
319
320
" Test\n $NBSP : android.widget.TextView.ChangeWatcher (0-6) fl=#6553618" ,
320
- " Test\n $NBSP : io.element.android.wysiwyg.view.spans.CodeBlockSpan (0-6) fl=#33 " ,
321
+ " Test\n $NBSP : io.element.android.wysiwyg.view.spans.CodeBlockSpan (0-6) fl=#17 " ,
321
322
" $NBSP : io.element.android.wysiwyg.view.spans.ExtraCharacterSpan (5-6) fl=#17" ,
322
323
" Test\n $NBSP : android.text.method.TextKeyListener (0-6) fl=#18" ,
323
324
" Test\n $NBSP : android.widget.Editor.SpanController (0-6) fl=#18" ,
@@ -335,7 +336,7 @@ class InterceptInputConnectionIntegrationTest {
335
336
textView.text.dumpSpans(), equalTo(
336
337
listOf (
337
338
" Test\n $NBSP : android.widget.TextView.ChangeWatcher (0-6) fl=#6553618" ,
338
- " Test: io.element.android.wysiwyg.view.spans.CodeBlockSpan (0-4) fl=#33 " ,
339
+ " Test: io.element.android.wysiwyg.view.spans.CodeBlockSpan (0-4) fl=#17 " ,
339
340
" $NBSP : io.element.android.wysiwyg.view.spans.ExtraCharacterSpan (5-6) fl=#17" ,
340
341
" Test\n $NBSP : android.text.method.TextKeyListener (0-6) fl=#18" ,
341
342
" Test\n $NBSP : android.widget.Editor.SpanController (0-6) fl=#18" ,
@@ -360,7 +361,7 @@ class InterceptInputConnectionIntegrationTest {
360
361
textView.text.dumpSpans().joinToString(" ,\n " ), equalTo(
361
362
"""
362
363
hello: android.widget.TextView.ChangeWatcher (0-5) fl=#6553618,
363
- hello: io.element.android.wysiwyg.view.spans.QuoteSpan (0-5) fl=#33 ,
364
+ hello: io.element.android.wysiwyg.view.spans.QuoteSpan (0-5) fl=#65553 ,
364
365
hello: android.text.style.UnderlineSpan (0-5) fl=#289,
365
366
hello: android.view.inputmethod.ComposingText (0-5) fl=#289,
366
367
hello: android.text.method.TextKeyListener (0-5) fl=#18,
@@ -407,7 +408,7 @@ class InterceptInputConnectionIntegrationTest {
407
408
textView.text.dumpSpans(), equalTo(
408
409
listOf (
409
410
" Test\n $NBSP : android.widget.TextView.ChangeWatcher (0-6) fl=#6553618" ,
410
- " Test\n $NBSP : io.element.android.wysiwyg.view.spans.QuoteSpan (0-6) fl=#33 " ,
411
+ " Test\n $NBSP : io.element.android.wysiwyg.view.spans.QuoteSpan (0-6) fl=#65553 " ,
411
412
" $NBSP : io.element.android.wysiwyg.view.spans.ExtraCharacterSpan (5-6) fl=#17" ,
412
413
" Test\n $NBSP : android.text.method.TextKeyListener (0-6) fl=#18" ,
413
414
" Test\n $NBSP : android.widget.Editor.SpanController (0-6) fl=#18" ,
@@ -425,7 +426,7 @@ class InterceptInputConnectionIntegrationTest {
425
426
textView.text.dumpSpans(), equalTo(
426
427
listOf (
427
428
" Test\n $NBSP : android.widget.TextView.ChangeWatcher (0-6) fl=#6553618" ,
428
- " Test: io.element.android.wysiwyg.view.spans.QuoteSpan (0-4) fl=#33 " ,
429
+ " Test: io.element.android.wysiwyg.view.spans.QuoteSpan (0-4) fl=#65553 " ,
429
430
" $NBSP : io.element.android.wysiwyg.view.spans.ExtraCharacterSpan (5-6) fl=#17" ,
430
431
" Test\n $NBSP : android.text.method.TextKeyListener (0-6) fl=#18" ,
431
432
" Test\n $NBSP : android.widget.Editor.SpanController (0-6) fl=#18" ,
0 commit comments