This is a testcase for a problem where caret rects and the rects returned by firstRectForCharacterRange were incorrect for justified text. The test sets a caret selection just before the word 'is' in the editable region below. The pixel output should show the caret in that position. The test also writes out the rect returned from firstRectForCharacterRange.

this    is justified