Changeset 11762 in josm for trunk/test


Ignore:
Timestamp:
2017-03-21T15:49:01+01:00 (8 years ago)
Author:
michael2402
Message:

See #13999: Add reference test for area icons.

Location:
trunk/test
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/data/renderer/area-text/style.mapcss

    r11727 r11762  
    1212}
    1313
    14 area[text=G] {
    15         name: eval("");
     14area[test=H] {
     15        text: eval("");
    1616}
  • trunk/test/functional/org/openstreetmap/josm/gui/mappaint/MapCSSRendererTest.java

    r11726 r11762  
    101101                new TestConfig("area-text", AREA_DEFAULT),
    102102
     103                /** Tests area icon drawing/placement */
     104                new TestConfig("area-icon", AREA_DEFAULT),
     105
    103106                /** Tests if all styles are sorted correctly. Tests {@link StyleRecord#compareTo(StyleRecord)} */
    104107                new TestConfig("order", AREA_DEFAULT)
     
    138141    @Test
    139142    public void testRender() throws Exception {
     143        // Force reset of preferences
     144        StyledMapRenderer.PREFERENCE_ANTIALIASING_USE.put(true);
     145        StyledMapRenderer.PREFERENCE_TEXT_ANTIALIASING.put("gasp");
     146
    140147        // load the data
    141148        DataSet dataSet = testConfig.getOsmDataSet();
Note: See TracChangeset for help on using the changeset viewer.