This caused the test to log false-positive failures about the message box being positioned to the left and right of the parent on Windows 10, where the message box is wider than it is on Windows XP.
The fix is to widen the parent windows by 100 pixels, which is just enough to hold the narrowest Windows 10 message box.