Tests repaint when a box with border is resized. Passes if the result paint rects cover all changed part, the new border is correctly drawn and there is no residue of the old border.