The test failure is caused by the mouse movement made by MangificationController code when it completes the animation for moving the magnifier window when it enables the magnifier. Since the animation runs async, the mouse move it made when the animation completes can come after the magnifier window is moved by following the focus on web page, and this will cause the magnifier to move the view port to follow the mouse. This leads to the magnifier window to be moved to unexpected location.
The cl fix this by waiting for the animation to be completed before it changes the focus on the control of the web page.
BUG=442695
TBR=oshima
Review URL: https://codereview.chromium.org/
813163002
Cr-Commit-Position: refs/heads/master@{#309130}