Comment 1 for bug 1651580

Revision history for this message
Albert Astals Cid (aacid) wrote : Re: UnityTestCase.mouseFlick is incredibly slow now

On my machine

We're calling
 mouseFlick(fakeWindow, 161, 161, 41, 41, true/*pressMouse*/, true/*releaseMouse*/, 4/*speed*/, 20/*iterations*/);

and the documentation says
// speed is in pixels/second

We have to travel a distance of sqrt((161-41)*(161-41) + (161-41)*(161-41)) = 120 pixels

Since we told it we want to travel at 4 pixels per second, the total time has to be 30 seconds, since we told it we wan 20 iterations, it'll wait 1.5 seconds between mouse moves.

So previously was broken and now does what it was told to do.

I don't see the bug (other than the mouseFlick call being wrong at passing such a slow speed if you want)