void () { // Similar to testCaretNotificationsWithinEmptyEditor: // any attempts to move the selection within an empty editor aren't supposed to cause caret movements => no caret updates are expected. final EditorImpl editor = initEditor("", 0, 0, 0); doTestCaretNotifications( editor.getContentComponent(), new CaretAction(() -> leftWithSelection(), null), new CaretAction(() -> rightWithSelection(), null), new CaretAction(() -> moveCaretToPreviousWordWithSelection(), null), new CaretAction(() -> upWithSelection(), null), new CaretAction(() -> moveCaretToNextWordWithSelection(), null), new CaretAction(() -> downWithSelection(), null), new CaretAction(() -> leftWithSelection(), null), new CaretAction(() -> downWithSelection(), null), new CaretAction(() -> moveCaretToPreviousWordWithSelection(), null), new CaretAction(() -> rightWithSelection(), null), new CaretAction(() -> moveCaretToNextWordWithSelection(), null), new CaretAction(() -> upWithSelection(), null) ); }