void (int offset, LogicalPosition logicalPosition, VisualPosition visualPositionTowardsSmallerOffsets, VisualPosition visualPositionTowardsLargerOffsets, Point xyTowardsSmallerOffsets, Point xyTowardsLargerOffsets) { assertLogicalPositionsEqual("Wrong offset->logicalPosition calculation", logicalPosition, getEditor().offsetToLogicalPosition(offset)); assertVisualPositionsEqual("Wrong beforeOffset->visualPosition calculation", visualPositionTowardsSmallerOffsets, getEditor().offsetToVisualPosition(offset, false, false)); assertVisualPositionsEqual("Wrong afterOffset->visualPosition calculation", visualPositionTowardsLargerOffsets, getEditor().offsetToVisualPosition(offset, true, false)); assertEquals("Wrong afterOffset->visualLine calculation", visualPositionTowardsLargerOffsets.line, ((EditorImpl)getEditor()).offsetToVisualLine(offset)); assertEquals("Wrong beforeOffset->xy calculation", xyTowardsSmallerOffsets, getEditor().offsetToXY(offset, false, false)); assertEquals("Wrong afterOffset->xy calculation", xyTowardsLargerOffsets, getEditor().offsetToXY(offset, true, false)); }