This test uses drawFocusIfNeeded to draw a complex path focus then compare ImageData from before and after.
Before:
After: