Changeset 17002 in josm


Ignore:
Timestamp:
2020-09-02T20:51:59+02:00 (3 weeks ago)
Author:
simon04
Message:

see #19017 - MapCSSRendererTest: reset thresholds to 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/gui/mappaint/MapCSSRendererTest.java

    r17000 r17002  
    8686                /** Tests for StyledMapRenderer#drawNodeSymbol */
    8787                new TestConfig("node-shapes", AREA_DEFAULT)
    88                         .setThresholdPixels(100).setThresholdTotalColorDiff(2_110),
     88                        .setThresholdPixels(0).setThresholdTotalColorDiff(0),
    8989
    9090                /** Text for nodes */
    9191                new TestConfig("node-text", AREA_DEFAULT).usesFont("DejaVu Sans")
    92                         .setThresholdPixels(530).setThresholdTotalColorDiff(23_800),
     92                        .setThresholdPixels(0).setThresholdTotalColorDiff(0),
    9393
    9494                /** Tests that StyledMapRenderer#drawWay respects width */
    9595                new TestConfig("way-width", AREA_DEFAULT)
    96                         .setThresholdPixels(280).setThresholdTotalColorDiff(22_500),
     96                        .setThresholdPixels(0).setThresholdTotalColorDiff(0),
    9797
    9898                /** Tests the way color property, including alpha */
    9999                new TestConfig("way-color", AREA_DEFAULT)
    100                         .setThresholdPixels(100).setThresholdTotalColorDiff(3_400),
     100                        .setThresholdPixels(0).setThresholdTotalColorDiff(0),
    101101
    102102                /** Tests dashed ways. */
    103103                new TestConfig("way-dashes", AREA_DEFAULT)
    104                         .setThresholdPixels(460).setThresholdTotalColorDiff(12_100),
     104                        .setThresholdPixels(0).setThresholdTotalColorDiff(0),
    105105
    106106                /** Tests dashed way clamping algorithm */
    107107                new TestConfig("way-dashes-clamp", AREA_DEFAULT)
    108                         .setThresholdPixels(200).setThresholdTotalColorDiff(6_800),
     108                        .setThresholdPixels(0).setThresholdTotalColorDiff(0),
    109109
    110110                /** Tests fill-color property */
     
    113113                /** Tests the fill-image property. */
    114114                new TestConfig("area-fill-image", AREA_DEFAULT)
    115                         .setThresholdPixels(420).setThresholdTotalColorDiff(11_200),
     115                        .setThresholdPixels(0).setThresholdTotalColorDiff(0),
    116116
    117117                /** Tests area label drawing/placement */
    118118                new TestConfig("area-text", AREA_DEFAULT)
    119                         .setThresholdPixels(550).setThresholdTotalColorDiff(17_400),
     119                        .setThresholdPixels(0).setThresholdTotalColorDiff(0),
    120120
    121121                /** Tests area icon drawing/placement */
    122122                new TestConfig("area-icon", AREA_DEFAULT)
    123                         .setThresholdPixels(680).setThresholdTotalColorDiff(23_000),
     123                        .setThresholdPixels(0).setThresholdTotalColorDiff(0),
    124124
    125125                /** Tests if all styles are sorted correctly. Tests {@link StyleRecord#compareTo(StyleRecord)} */
    126126                new TestConfig("order", AREA_DEFAULT)
    127                         .setThresholdPixels(2050).setThresholdTotalColorDiff(101_800),
     127                        .setThresholdPixels(0).setThresholdTotalColorDiff(0),
    128128
    129129                /** Tests repeat-image feature for ways */
     
    132132                /** Tests the clamping for repeat-images and repeat-image-phase */
    133133                new TestConfig("way-repeat-image-clamp", AREA_DEFAULT)
    134                         .setThresholdPixels(80).setThresholdTotalColorDiff(2_300),
     134                        .setThresholdPixels(0).setThresholdTotalColorDiff(0),
    135135
    136136                /** Tests text along a way */
    137137                new TestConfig("way-text", AREA_DEFAULT)
    138                         .setThresholdPixels(3400).setThresholdTotalColorDiff(122_700),
     138                        .setThresholdPixels(3400).setThresholdTotalColorDiff(0),
    139139
    140140                /** Another test for node shapes */
    141141                new TestConfig("node-shapes2").setImageWidth(600)
    142                         .setThresholdPixels(1230).setThresholdTotalColorDiff(43_700),
     142                        .setThresholdPixels(0).setThresholdTotalColorDiff(0),
    143143                /** Tests default values for node shapes */
    144144                new TestConfig("node-shapes-default")
    145                         .setThresholdPixels(10).setThresholdTotalColorDiff(270),
     145                        .setThresholdPixels(0).setThresholdTotalColorDiff(0),
    146146                /** Tests node shapes with both fill and stroke combined */
    147147                new TestConfig("node-shapes-combined")
    148                         .setThresholdPixels(360).setThresholdTotalColorDiff(9_200),
     148                        .setThresholdPixels(0).setThresholdTotalColorDiff(0),
    149149                /** Another test for dashed ways */
    150150                new TestConfig("way-dashes2")
    151                         .setThresholdPixels(340).setThresholdTotalColorDiff(16_100),
     151                        .setThresholdPixels(0).setThresholdTotalColorDiff(0),
    152152                /** Tests node text placement */
    153153                new TestConfig("node-text2")
    154                         .setThresholdPixels(1020).setThresholdTotalColorDiff(345_000),
     154                        .setThresholdPixels(1020).setThresholdTotalColorDiff(0),
    155155                /** Tests relation link selector */
    156156                new TestConfig("relation-linkselector")
    157                         .setThresholdPixels(430).setThresholdTotalColorDiff(13_000),
     157                        .setThresholdPixels(0).setThresholdTotalColorDiff(0),
    158158                /** Tests parent selector on relation */
    159159                new TestConfig("relation-parentselector")
    160                         .setThresholdPixels(310).setThresholdTotalColorDiff(8_200),
     160                        .setThresholdPixels(0).setThresholdTotalColorDiff(0),
    161161
    162162                /** Tests evaluation of expressions */
    163163                new TestConfig("eval").setImageWidth(600)
    164                         .setThresholdPixels(6610).setThresholdTotalColorDiff(3_304_000)
     164                        .setThresholdPixels(6610).setThresholdTotalColorDiff(0)
    165165
    166166                ).map(e -> new Object[] {e, e.testDirectory})
Note: See TracChangeset for help on using the changeset viewer.