void () { initText("abc"); configureSoftWraps(1000); // to make sure soft wrap character width is properly mocked ((EditorEx)getEditor()).setPrefixTextAndAttributes(">", new TextAttributes()); assertEquals(new VisualPosition(0, 0), getEditor().xyToVisualPosition(new Point(1, 0))); }