We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f88fe8 commit fb2f843Copy full SHA for fb2f843
1 file changed
richtextfx/src/integrationTest/java/org/fxmisc/richtext/mouse/ClickAndDragTests.java
@@ -261,14 +261,15 @@ public void pressingMouseOnSelectionAndDraggingAndReleasingMovesSelectedTextToTh
261
area.selectRange(0, firstWord.length());
262
});
263
264
+ String selText = area.getSelectedText();
265
int caretPos = area.getCaretPosition();
266
267
moveTo(firstLineOfArea())
268
.press(PRIMARY)
269
.dropBy(0, 14);
270
271
assertTrue(caretPos != area.getCaretPosition());
- assertTrue(area.getSelectedText().isEmpty());
272
+ assertEquals(selText, area.getSelectedText());
273
}
274
275
0 commit comments