void () { initText("a\nbbb\nccccc"); getEditor().getSettings().setAdditionalColumnsCount(0); getEditor().getSettings().setAdditionalLinesCount(0); assertEquals(new Dimension(50, (int)(30 * FontPreferences.DEFAULT_LINE_SPACING)), getEditor().getContentComponent().getPreferredSize()); }