b3e91b66b9
Aftera37785ec76
went in, it become apparent that multi mouse button state handling in qtestlib is non-existent, for details see QTBUG-64030 and QTBUG-63786. What happened behind the scenes often was not what one would expect based on the provided QTest::mouse* input sequence - events went missing, incorrect events were generated, each subsequent test function started with a state set from the function that run earlier. It is easy to see how a minor change in one test could easily affect outcome of other tests. Witha37785ec76
, Qt platform plugins are now responsible for sending explicit mouse button type and state information; qtestlib should take full responsibility now as well. But using the new API froma37785ec7
alone in qtestlib is not sufficient. We need to reset mouse state between each new test function run (we do this at function scope as that fits with the current qtestlib API user expectations). This patch implements the necessary reseting logic. Updated tst_qwindow.cpp::generatedMouseMove() to use QTest::mouse* APIs. That test requires pressing multiple buttons, it was not possible with QTest::mouse* APIs before this patch. Added an auto test for multiple mouse button pressing/release in tests/auto/testlib/selftests/mouse/. And few other tests which are currently QSKIP-ed, but should be considered when re-designing qtestlib APIs. Task-number: QTBUG-64030 Change-Id: I39fdcbc73a467a7463ce2aed622bf22484095635 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
55 lines
1.0 KiB
Plaintext
55 lines
1.0 KiB
Plaintext
SUBPROGRAMS = \
|
|
#alive \
|
|
assert \
|
|
badxml \
|
|
benchlibcallgrind \
|
|
benchlibcounting \
|
|
benchlibeventcounter \
|
|
benchliboptions \
|
|
benchlibtickcounter \
|
|
benchlibwalltime \
|
|
blacklisted \
|
|
cmptest \
|
|
commandlinedata \
|
|
counting \
|
|
crashes \
|
|
datatable \
|
|
datetime \
|
|
deleteLater \
|
|
deleteLater_noApp \
|
|
differentexec \
|
|
exceptionthrow \
|
|
expectfail \
|
|
failcleanup \
|
|
failinit \
|
|
failinitdata \
|
|
fetchbogus \
|
|
findtestdata \
|
|
float \
|
|
globaldata \
|
|
longstring \
|
|
maxwarnings \
|
|
multiexec \
|
|
pairdiagnostics \
|
|
printdatatags \
|
|
printdatatagswithglobaltags \
|
|
qexecstringlist \
|
|
silent \
|
|
singleskip \
|
|
skip \
|
|
skipcleanup \
|
|
skipinit \
|
|
skipinitdata \
|
|
sleep \
|
|
strcmp \
|
|
subtest \
|
|
verbose1 \
|
|
verbose2 \
|
|
verifyexceptionthrown \
|
|
warnings \
|
|
xunit \
|
|
mouse
|
|
|
|
INCLUDEPATH += ../../../../shared/
|
|
HEADERS += ../../../../shared/emulationdetector.h
|