use of limelight.ui.events.panel.KeyPressedEvent in project limelight by slagyr.
the class TextInputKeyProcessorTest method shitUpArrowMovesUpALineWithSelectionWithMutlipleLines.
@Test
public void shitUpArrowMovesUpALineWithSelectionWithMutlipleLines() {
setupMultiLine("This is\nMulti lined.").withCaretAt(1, 3).andSelectionAt(0, 4);
processor.processKey(new KeyPressedEvent(SHIFT, KeyEvent.KEY_UP, 0), model);
assertEquals(TextLocation.at(0, 3), model.getCaretLocation());
assertEquals(TextLocation.at(0, 4), model.getSelectionLocation());
assertEquals(true, model.isSelectionActivated());
}
Aggregations