diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2014-09-01 23:53:11 +0200 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2014-09-01 23:53:11 +0200 |
commit | 9c3d0e77ac5bc4e87d75d24ebbbea3734f29f746 (patch) | |
tree | 9321be29d7954f5dfa0f59ec8f8c90e4ad83875a /tests/src/cgeo | |
parent | 7833aae92088bc08948bcac4179d968c7f0f9a78 (diff) | |
download | cgeo-9c3d0e77ac5bc4e87d75d24ebbbea3734f29f746.zip cgeo-9c3d0e77ac5bc4e87d75d24ebbbea3734f29f746.tar.gz cgeo-9c3d0e77ac5bc4e87d75d24ebbbea3734f29f746.tar.bz2 |
avoid superfluous empty space in trackable goal
Diffstat (limited to 'tests/src/cgeo')
-rw-r--r-- | tests/src/cgeo/geocaching/utils/HtmlUtilsTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/utils/HtmlUtilsTest.java b/tests/src/cgeo/geocaching/utils/HtmlUtilsTest.java index 65e86b8..e75c2e6 100644 --- a/tests/src/cgeo/geocaching/utils/HtmlUtilsTest.java +++ b/tests/src/cgeo/geocaching/utils/HtmlUtilsTest.java @@ -15,4 +15,9 @@ public class HtmlUtilsTest extends TestCase { assertThat(HtmlUtils.extractText("<b>bold</b>")).isEqualTo("bold"); } + public static void testRemoveExtraParagraph() { + assertThat(HtmlUtils.removeExtraParagraph("<p></p>")).isEqualTo(""); + assertThat(HtmlUtils.removeExtraParagraph("<p>Test</p>")).isEqualTo("Test"); + assertThat(HtmlUtils.removeExtraParagraph("<p>1</p><p>2</p>")).isEqualTo("<p>1</p><p>2</p>"); + } } |