Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public void testForBug904() {
interact( () -> area.setStyle( 5, 9, "-fx-font-weight: bold;" ) );
write( "new line" );
area.getUndoManager().preventMerge();
area.append( area.getContent().subSequence( firstLine.length()-1, area.getLength() ) );
interact( () -> area.append( area.getContent().subSequence( firstLine.length()-1, area.getLength() ) ) );
interact( area::undo ); // should not throw Unexpected change received exception
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ private void selectRight() {

@Test
public void initial_range_specified_via_constructor_is_honored() {
area.appendText( "\n"+ fullText );
area.appendText( "\n"+ fullText );
interact(() -> {
area.appendText( "\n"+ fullText );
area.appendText( "\n"+ fullText );
});

int paragraphOne = 1;
int start = area.getAbsolutePosition( paragraphOne, leftText.length() );
Expand Down