0f94430a0f
The timestamp will no longer be incremented by 500ms after a mouse
release if the delay has been explicitly specified.
The default delay is 1 ms since f5010c49a3
but the running timestamp was unconditionally post-incremented by 500ms
after every mouse release, to prevent double-clicks, which were always
deemed as unintended (because we have a mouseDClick function for that).
Now, we do that 500ms increment only if the user has not provided a
delay value in the function argument at all. We have often found it
useful in our own tests to generate double-clicks "the hard way", by
sending indivdual events, so as to be able to check state in some target
object at each step, as shown in the new snippet.
[ChangeLog][QtTest] QTest::mouseRelease() and mouseClick() can now be
used to test double-clicks, by specifying a realistic timestamp delay.
Fixes: QTBUG-102441
Change-Id: I8e8d242061f79efb4c6e02638645e03661a9cd92
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
34 lines
3.0 KiB
Plaintext
34 lines
3.0 KiB
Plaintext
##teamcity[testSuiteStarted name='tst_Mouse' flowId='tst_Mouse']
|
|
##teamcity[testStarted name='initTestCase()' flowId='tst_Mouse']
|
|
##teamcity[testFinished name='initTestCase()' flowId='tst_Mouse']
|
|
##teamcity[testStarted name='timestampBetweenTestFunction(press, release)' flowId='tst_Mouse']
|
|
##teamcity[testFinished name='timestampBetweenTestFunction(press, release)' flowId='tst_Mouse']
|
|
##teamcity[testStarted name='timestampBetweenTestFunction(press, release, hover)' flowId='tst_Mouse']
|
|
##teamcity[testFinished name='timestampBetweenTestFunction(press, release, hover)' flowId='tst_Mouse']
|
|
##teamcity[testStarted name='timestampBetweenTestFunction(hover)' flowId='tst_Mouse']
|
|
##teamcity[testFinished name='timestampBetweenTestFunction(hover)' flowId='tst_Mouse']
|
|
##teamcity[testStarted name='timestampBetweenTestFunction(hover #2)' flowId='tst_Mouse']
|
|
##teamcity[testFinished name='timestampBetweenTestFunction(hover #2)' flowId='tst_Mouse']
|
|
##teamcity[testStarted name='timestampBetweenTestFunction(press, release #2)' flowId='tst_Mouse']
|
|
##teamcity[testFinished name='timestampBetweenTestFunction(press, release #2)' flowId='tst_Mouse']
|
|
##teamcity[testStarted name='timestampBetweenTestFunction(press, release, hover #2)' flowId='tst_Mouse']
|
|
##teamcity[testFinished name='timestampBetweenTestFunction(press, release, hover #2)' flowId='tst_Mouse']
|
|
##teamcity[testStarted name='stateHandlingPart1(dummy-1)' flowId='tst_Mouse']
|
|
##teamcity[testFinished name='stateHandlingPart1(dummy-1)' flowId='tst_Mouse']
|
|
##teamcity[testStarted name='stateHandlingPart1(dummy-2)' flowId='tst_Mouse']
|
|
##teamcity[testFinished name='stateHandlingPart1(dummy-2)' flowId='tst_Mouse']
|
|
##teamcity[testStarted name='stateHandlingPart2()' flowId='tst_Mouse']
|
|
##teamcity[testIgnored name='stateHandlingPart2()' message='Not implemented beyond this point! |[Loc: qtbase/tests/auto/testlib/selftests/mouse/tst_mouse.cpp(0)|]' flowId='tst_Mouse']
|
|
##teamcity[testFinished name='stateHandlingPart2()' flowId='tst_Mouse']
|
|
##teamcity[testStarted name='deterministicEvents(first-run-true)' flowId='tst_Mouse']
|
|
##teamcity[testIgnored name='deterministicEvents(first-run-true)' message='Not implemented! |[Loc: qtbase/tests/auto/testlib/selftests/mouse/tst_mouse.cpp(0)|]' flowId='tst_Mouse']
|
|
##teamcity[testFinished name='deterministicEvents(first-run-true)' flowId='tst_Mouse']
|
|
##teamcity[testStarted name='deterministicEvents(first-run-false)' flowId='tst_Mouse']
|
|
##teamcity[testIgnored name='deterministicEvents(first-run-false)' message='Not implemented! |[Loc: qtbase/tests/auto/testlib/selftests/mouse/tst_mouse.cpp(0)|]' flowId='tst_Mouse']
|
|
##teamcity[testFinished name='deterministicEvents(first-run-false)' flowId='tst_Mouse']
|
|
##teamcity[testStarted name='doubleClick()' flowId='tst_Mouse']
|
|
##teamcity[testFinished name='doubleClick()' flowId='tst_Mouse']
|
|
##teamcity[testStarted name='cleanupTestCase()' flowId='tst_Mouse']
|
|
##teamcity[testFinished name='cleanupTestCase()' flowId='tst_Mouse']
|
|
##teamcity[testSuiteFinished name='tst_Mouse' flowId='tst_Mouse']
|