File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
aztec/src/test/kotlin/org/wordpress/aztec Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -343,4 +343,25 @@ class BlockElementsTest(val alignmentApproach: AlignmentApproach) {
343343
344344 Assert .assertEquals(expectedHtml, editText.toHtml())
345345 }
346+
347+ @Test
348+ fun alignmentApproachEffectOnLeftAlignment () {
349+ assertNoChangeWithFromHtmlToHtmlRoundTrip(" <p style=\" text-align:left;\" >left</p>" )
350+ }
351+
352+ @Test
353+ fun alignmentApproachEffectOnCenterAlignment () {
354+ assertNoChangeWithFromHtmlToHtmlRoundTrip(" <p style=\" text-align:center;\" >center</p>" )
355+ }
356+
357+ @Test
358+ fun alignmentApproachEffectOnRightAlignment () {
359+ assertNoChangeWithFromHtmlToHtmlRoundTrip(" <p style=\" text-align:right;\" >right</p>" )
360+ }
361+
362+ fun assertNoChangeWithFromHtmlToHtmlRoundTrip (html : String ) {
363+ editText.fromHtml(html)
364+ val output = editText.toHtml()
365+ Assert .assertEquals(html, output)
366+ }
346367}
You can’t perform that action at this time.
0 commit comments