Changeset 12159 in josm for trunk


Ignore:
Timestamp:
2017-05-15T15:26:15+02:00 (8 years ago)
Author:
michael2402
Message:

Fix data layer tooltip test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/OsmDataLayerTest.java

    r11261 r12159  
    148148    public void testGetToolTipText() {
    149149        DataSet ds = new DataSet();
    150         assertEquals("0 nodes, 0 ways, 0 relations", new OsmDataLayer(ds, "", null).getToolTipText());
    151         fillDataSet(ds);
    152         assertEquals("1 node, 1 way, 1 relation", new OsmDataLayer(ds, "", null).getToolTipText());
    153         assertEquals("<html>1 node, 1 way, 1 relation<br>data.osm</html>", new OsmDataLayer(ds, "", new File("data.osm")).getToolTipText());
     150        assertEquals("<html>0 nodes<br>0 ways<br>0 relations</html>", new OsmDataLayer(ds, "", null).getToolTipText());
     151        fillDataSet(ds);
     152        assertEquals("<html>1 node<br>1 way<br>1 relation</html>", new OsmDataLayer(ds, "", null).getToolTipText());
     153        assertEquals("<html>1 node<br>1 way<br>1 relation<br>data.osm</html>", new OsmDataLayer(ds, "", new File("data.osm")).getToolTipText());
    154154    }
    155155
Note: See TracChangeset for help on using the changeset viewer.