Changeset 19270 in josm
- Timestamp:
- 2024-12-11T16:09:06+01:00 (6 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/testutils/MapModeUtils.java
r19227 r19270 5 5 6 6 import java.awt.event.MouseEvent; 7 import java.util.concurrent.TimeUnit; 7 8 8 9 import org.awaitility.Awaitility; … … 81 82 MainApplication.getMap().mapMode.mousePressed(mouseClickAt(from)); 82 83 // Some actions wait a period of time to avoid accidental dragging. 83 Awaitility.await().pollDelay(Durations.FIVE_HUNDRED_MILLISECONDS).atLeast( Durations.FIVE_HUNDRED_MILLISECONDS).until(() -> true);84 Awaitility.await().pollDelay(Durations.FIVE_HUNDRED_MILLISECONDS).atLeast(490, TimeUnit.MILLISECONDS).until(() -> true); 84 85 MainApplication.getMap().mapMode.mouseDragged(mouseClickAt(from)); 85 86 MainApplication.getMap().mapMode.mouseDragged(mouseClickAt(to));
Note:
See TracChangeset
for help on using the changeset viewer.