Changeset 11777 in josm for trunk/test/unit
- Timestamp:
- 2017-03-25T22:09:41+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java
r11251 r11777 15 15 import org.openstreetmap.josm.Main; 16 16 import org.openstreetmap.josm.data.projection.Projections; 17 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles; 17 18 import org.openstreetmap.josm.gui.util.GuiHelper; 18 19 import org.openstreetmap.josm.io.OsmApi; … … 44 45 private boolean commands; 45 46 private boolean allowMemoryManagerLeaks; 47 private boolean useMapStyles; 46 48 47 49 /** … … 153 155 public JOSMTestRules memoryManagerLeaks() { 154 156 allowMemoryManagerLeaks = true; 157 return this; 158 } 159 160 /** 161 * Use map styles in this test. 162 * @return this instance, for easy chaining 163 * @since 11777 164 */ 165 public JOSMTestRules mapStyles() { 166 preferences(); 167 useMapStyles = true; 155 168 return this; 156 169 } … … 233 246 if (platform) { 234 247 Main.determinePlatformHook(); 248 } 249 250 if (useMapStyles) { 251 // Reset the map paint styles. 252 MapPaintStyles.readFromPreferences(); 235 253 } 236 254
Note:
See TracChangeset
for help on using the changeset viewer.