Changeset 12394 in josm
- Timestamp:
- 2017-06-11T15:26:59+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/layer/LayerVisibilityActionTest.java
r10467 r12394 6 6 import static org.junit.Assert.assertTrue; 7 7 8 import org.junit.BeforeClass; 8 9 import org.junit.Rule; 9 10 import org.junit.Test; 11 import org.openstreetmap.josm.JOSMFixture; 10 12 import org.openstreetmap.josm.Main; 11 13 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; … … 27 29 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 28 30 public JOSMTestRules test = new JOSMTestRules().preferences().projection().platform(); 31 32 /** 33 * Somewhere deep down the dependencies we need shortcuts 34 */ 35 @BeforeClass 36 public static void setUp() { 37 JOSMFixture.createUnitTestFixture().init(true); 38 } 29 39 30 40 /** … … 70 80 71 81 // layer stays visible during adjust 72 action.opacitySlider.s etValueIsAdjusting(true);82 action.opacitySlider.slider.setValueIsAdjusting(true); 73 83 action.opacitySlider.setRealValue(0); 74 84 assertEquals(0, layer.getOpacity(), 1e-15); … … 77 87 layer.setOpacity(0); 78 88 79 action.opacitySlider.s etValueIsAdjusting(false);89 action.opacitySlider.slider.setValueIsAdjusting(false); 80 90 action.opacitySlider.setRealValue(0); 81 91 assertEquals(0, layer.getOpacity(), 1e-15);
Note:
See TracChangeset
for help on using the changeset viewer.