try {
int length = jta.getDocument().getLength();
for (int i = 0; i < length; i++) {
Rectangle visibleRect = ui.getVisibleEditorRect();
r1 = ui.modelToView(null, i, forward);
r2 = view.modelToView(i, visibleRect, forward).getBounds();
assertEquals(r2, r1);
r1 = ui.modelToView(null, i);
assertEquals(r2, r1);
r1 = ui.modelToView(null, i, backward);
r2 = view.modelToView(i, visibleRect, backward).getBounds();