Changeset 15760 in josm for trunk/test/unit


Ignore:
Timestamp:
2020-01-25T21:11:58+01:00 (5 years ago)
Author:
simon04
Message:

fix #15628 - Strip HTML code from GPX descriptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/UtilsTest.java

    r14371 r15760  
    317317        assertTrue(Utils.isSimilar("Rua São João", "Rua SAO Joao"));
    318318    }
     319
     320    /**
     321     * Test of {@link Utils#stripHtml(String)}
     322     */
     323    @Test
     324    public void testStripHtml() {
     325        assertEquals("Hoogte 55 m", Utils.stripHtml(
     326                "<table width=\"100%\"><tr>" +
     327                        "<td align=\"left\" valign=\"center\"><small><b>Hoogte</b></small></td>" +
     328                        "<td align=\"center\" valign=\"center\">55 m</td></tr></table>"));
     329    }
    319330}
Note: See TracChangeset for help on using the changeset viewer.