void () { init("a bc"); EditorTestUtil.configureSoftWraps(getEditor(), 2); assertNotNull(getEditor().getSoftWrapModel().getSoftWrap(2)); addRangeHighlighter(1, 3, 0, Color.red); addRangeHighlighter(1, 2, 1, Color.blue); IterationState it = new IterationState((EditorEx)getEditor(), 0, 4, null, false, false, false, false); it.advance(); it.advance(); assertFalse(it.atEnd()); assertEquals(2, it.getStartOffset()); assertEquals(3, it.getEndOffset()); assertEquals(Color.red, it.getPastLineEndBackgroundAttributes().getBackgroundColor()); assertEquals(Color.red, it.getBeforeLineStartBackgroundAttributes().getBackgroundColor()); }