This tests that when a selection that ends at [replaced element, 0] is painted, the replaced element doesn't appear selected. This test uses an image for the replaced element.

abcdef