public void goToTheEndOfPreviousLineEvenIfItEndsWithNewline() throws Exception
{
setupMultiLine("Some more text\nand some more");
model.setCaretLocation(model.getEndLocation());
processor.processKey(new KeyPressedEvent(NO_MODIFIERS, KeyEvent.KEY_UP, 0), model);
assertEquals(TextLocation.at(0, 13), model.getCaretLocation());
assertEquals(TextLocation.origin, model.getSelectionLocation());
assertEquals(false, model.isSelectionActivated());
}