Changeset 17002 in josm
- Timestamp:
- 2020-09-02T20:51:59+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/gui/mappaint/MapCSSRendererTest.java
r17000 r17002 86 86 /** Tests for StyledMapRenderer#drawNodeSymbol */ 87 87 new TestConfig("node-shapes", AREA_DEFAULT) 88 .setThresholdPixels( 100).setThresholdTotalColorDiff(2_110),88 .setThresholdPixels(0).setThresholdTotalColorDiff(0), 89 89 90 90 /** Text for nodes */ 91 91 new TestConfig("node-text", AREA_DEFAULT).usesFont("DejaVu Sans") 92 .setThresholdPixels( 530).setThresholdTotalColorDiff(23_800),92 .setThresholdPixels(0).setThresholdTotalColorDiff(0), 93 93 94 94 /** Tests that StyledMapRenderer#drawWay respects width */ 95 95 new TestConfig("way-width", AREA_DEFAULT) 96 .setThresholdPixels( 280).setThresholdTotalColorDiff(22_500),96 .setThresholdPixels(0).setThresholdTotalColorDiff(0), 97 97 98 98 /** Tests the way color property, including alpha */ 99 99 new TestConfig("way-color", AREA_DEFAULT) 100 .setThresholdPixels( 100).setThresholdTotalColorDiff(3_400),100 .setThresholdPixels(0).setThresholdTotalColorDiff(0), 101 101 102 102 /** Tests dashed ways. */ 103 103 new TestConfig("way-dashes", AREA_DEFAULT) 104 .setThresholdPixels( 460).setThresholdTotalColorDiff(12_100),104 .setThresholdPixels(0).setThresholdTotalColorDiff(0), 105 105 106 106 /** Tests dashed way clamping algorithm */ 107 107 new TestConfig("way-dashes-clamp", AREA_DEFAULT) 108 .setThresholdPixels( 200).setThresholdTotalColorDiff(6_800),108 .setThresholdPixels(0).setThresholdTotalColorDiff(0), 109 109 110 110 /** Tests fill-color property */ … … 113 113 /** Tests the fill-image property. */ 114 114 new TestConfig("area-fill-image", AREA_DEFAULT) 115 .setThresholdPixels( 420).setThresholdTotalColorDiff(11_200),115 .setThresholdPixels(0).setThresholdTotalColorDiff(0), 116 116 117 117 /** Tests area label drawing/placement */ 118 118 new TestConfig("area-text", AREA_DEFAULT) 119 .setThresholdPixels( 550).setThresholdTotalColorDiff(17_400),119 .setThresholdPixels(0).setThresholdTotalColorDiff(0), 120 120 121 121 /** Tests area icon drawing/placement */ 122 122 new TestConfig("area-icon", AREA_DEFAULT) 123 .setThresholdPixels( 680).setThresholdTotalColorDiff(23_000),123 .setThresholdPixels(0).setThresholdTotalColorDiff(0), 124 124 125 125 /** Tests if all styles are sorted correctly. Tests {@link StyleRecord#compareTo(StyleRecord)} */ 126 126 new TestConfig("order", AREA_DEFAULT) 127 .setThresholdPixels( 2050).setThresholdTotalColorDiff(101_800),127 .setThresholdPixels(0).setThresholdTotalColorDiff(0), 128 128 129 129 /** Tests repeat-image feature for ways */ … … 132 132 /** Tests the clamping for repeat-images and repeat-image-phase */ 133 133 new TestConfig("way-repeat-image-clamp", AREA_DEFAULT) 134 .setThresholdPixels( 80).setThresholdTotalColorDiff(2_300),134 .setThresholdPixels(0).setThresholdTotalColorDiff(0), 135 135 136 136 /** Tests text along a way */ 137 137 new TestConfig("way-text", AREA_DEFAULT) 138 .setThresholdPixels(3400).setThresholdTotalColorDiff( 122_700),138 .setThresholdPixels(3400).setThresholdTotalColorDiff(0), 139 139 140 140 /** Another test for node shapes */ 141 141 new TestConfig("node-shapes2").setImageWidth(600) 142 .setThresholdPixels( 1230).setThresholdTotalColorDiff(43_700),142 .setThresholdPixels(0).setThresholdTotalColorDiff(0), 143 143 /** Tests default values for node shapes */ 144 144 new TestConfig("node-shapes-default") 145 .setThresholdPixels( 10).setThresholdTotalColorDiff(270),145 .setThresholdPixels(0).setThresholdTotalColorDiff(0), 146 146 /** Tests node shapes with both fill and stroke combined */ 147 147 new TestConfig("node-shapes-combined") 148 .setThresholdPixels( 360).setThresholdTotalColorDiff(9_200),148 .setThresholdPixels(0).setThresholdTotalColorDiff(0), 149 149 /** Another test for dashed ways */ 150 150 new TestConfig("way-dashes2") 151 .setThresholdPixels( 340).setThresholdTotalColorDiff(16_100),151 .setThresholdPixels(0).setThresholdTotalColorDiff(0), 152 152 /** Tests node text placement */ 153 153 new TestConfig("node-text2") 154 .setThresholdPixels(1020).setThresholdTotalColorDiff( 345_000),154 .setThresholdPixels(1020).setThresholdTotalColorDiff(0), 155 155 /** Tests relation link selector */ 156 156 new TestConfig("relation-linkselector") 157 .setThresholdPixels( 430).setThresholdTotalColorDiff(13_000),157 .setThresholdPixels(0).setThresholdTotalColorDiff(0), 158 158 /** Tests parent selector on relation */ 159 159 new TestConfig("relation-parentselector") 160 .setThresholdPixels( 310).setThresholdTotalColorDiff(8_200),160 .setThresholdPixels(0).setThresholdTotalColorDiff(0), 161 161 162 162 /** Tests evaluation of expressions */ 163 163 new TestConfig("eval").setImageWidth(600) 164 .setThresholdPixels(6610).setThresholdTotalColorDiff( 3_304_000)164 .setThresholdPixels(6610).setThresholdTotalColorDiff(0) 165 165 166 166 ).map(e -> new Object[] {e, e.testDirectory})
Note:
See TracChangeset
for help on using the changeset viewer.