mouseFlick in testWindowResizeArea is incredibly slow now
Bug #1651580 reported by
Daniel d'Andrada
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unity8 (Ubuntu) |
Fix Released
|
Low
|
Albert Astals Cid |
Bug Description
Regression caused by http://
Using xenial+overlay.
mouseFlick() in "make testWindowResiz
These are the numbers in my machine:
"""
QDEBUG : qmltestrunner:
"""
That commit increased the time between mouse moves from 3.3 ms to a whopping 2 secs.
Related branches
lp:~aacid/unity8/faster_testWindowResizeArea
- Unity8 CI Bot: Approve (continuous-integration)
- Daniel d'Andrada (community): Approve
-
Diff: 63 lines (+7/-9)1 file modifiedtests/qmltests/Stage/tst_WindowResizeArea.qml (+7/-9)
Changed in unity8 (Ubuntu): | |
assignee: | nobody → Albert Astals Cid (aacid) |
description: | updated |
Changed in unity8 (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Low |
To post a comment you must log in.
On my machine
We're calling fakeWindow, 161, 161, 41, 41, true/*pressMouse*/, true/*releaseMo use*/, 4/*speed*/, 20/*iterations*/);
mouseFlick(
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)