Skip to content

Commit 0ac25f3

Browse files
committed
Refactor mixed HTML variables
1 parent 1c853b3 commit 0ac25f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

aztec/src/test/kotlin/org/wordpress/aztec/HtmlFormattingTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class HtmlFormattingTest() : AndroidTestCase() {
3535
"</div>" +
3636
"<br><br>"
3737

38-
private val HTML_MIXED =
38+
private val HTML_MIXED_WITH_NEWLINES =
3939
"\n\n<span><i>Italic</i></span>\n\n" +
4040
"<b>Bold</b><br>" +
4141
"\t<div class=\"first\">" +
@@ -52,7 +52,7 @@ class HtmlFormattingTest() : AndroidTestCase() {
5252
"</div>" +
5353
"<br>"
5454

55-
private val HTML_MIXED_NO_WS =
55+
private val HTML_MIXED_WITHOUT_NEWLINES =
5656
"<span><i>Italic</i></span>" +
5757
" <b>Bold</b><br>" +
5858
"<div class=\"first\">" +
@@ -116,10 +116,10 @@ class HtmlFormattingTest() : AndroidTestCase() {
116116
@Test
117117
@Throws(Exception::class)
118118
fun formatMixedHtml() {
119-
val input = HTML_MIXED
119+
val input = HTML_MIXED_WITH_NEWLINES
120120
val span = SpannableString(parser.fromHtml(input, null, null, context))
121121
val output = Format.clearFormatting(Format.addFormatting(parser.toHtml(span)))
122-
Assert.assertEquals(HTML_MIXED_NO_WS, output)
122+
Assert.assertEquals(HTML_MIXED_WITHOUT_NEWLINES, output)
123123
}
124124

125125
/**

0 commit comments

Comments
 (0)