We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0962bf6 commit dae3cbdCopy full SHA for dae3cbd
1 file changed
richtextfx/src/integrationTest/java/org/fxmisc/richtext/api/selection/PositionTests.java
@@ -158,4 +158,13 @@ public void end_position_is_correct_when_change_occurs_after_position() {
158
assertEquals(leftText.length(), selection.getEndPosition());
159
});
160
}
161
+
162
+ public void deletion_which_includes_selection_and_which_occurs_at_end_of_area_moves_selection_to_new_area_end() {
163
+ interact(() -> {
164
+ selection.selectRange(area.getLength(), area.getLength());
165
+ area.deleteText(leftText.length(), area.getLength());
166
+ assertEquals(area.getLength(), selection.getStartPosition());
167
+ assertEquals(area.getLength(), selection.getEndPosition());
168
+ });
169
+ }
170
0 commit comments