qt5base-lts/tests/auto/gui/kernel
Dimitrios Apostolou 45501f6ca6 Ensure list has elements before getting them
Before a recent fix it would happen occasionally that
lastNormalizedPositions.at(0) would segfault because the list was
empty. The cause of the flakiness was fixed, but make the test more
resilient anyway by checking first the list is correctly populated.

Furthermore on some platforms this check fails:

  qAbs(leftWidget.lastNormalizedPositions.at(1).x() - 0.8) < 0.05

So instead of QVERIFY use QCOMPARE_LT to print the values when it fails.

Task-number: QTBUG-104268
Change-Id: Id5430eb53c133cf5d23647cfd9749f01f266efce
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2022-07-22 19:19:59 +02:00
..
noqteventloop Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qaction Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qactiongroup Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qaddpostroutine Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qbackingstore Do not use QExposedEvent::region() in internal code 2022-07-13 16:45:00 +02:00
qclipboard Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcursor Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdrag Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qevent Revert "QFutureCallOutEvent: de-export again" 2022-07-06 18:41:31 +02:00
qfileopenevent Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qguiapplication QGuiApplication: do not emit deprecated signals 2022-07-21 19:59:07 +02:00
qguieventdispatcher Remove the qmake project files 2021-01-07 15:32:28 +01:00
qguieventloop Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qguimetatype Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qguitimer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qguivariant CMake: Rename test to tst_gui_variant_no_application 2022-07-20 16:51:19 +02:00
qhighdpi Revert "Apply ScaleFactorRoundingPolicy to QT_SCREEN_SCALE_FACTORS" 2022-07-07 14:47:14 +02:00
qinputdevice Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qinputmethod Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qkeyevent Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qkeysequence QKeySequence: Add missing modifier names 2022-05-25 13:00:02 +00:00
qmouseevent Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmouseevent_modal Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglwindow Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qpalette QPalette: detach before modifying resolve mask when resolving 2022-07-15 09:58:23 +02:00
qpixelformat Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qrasterwindow Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qscreen Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qshortcut Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qsurfaceformat Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtouchevent Ensure list has elements before getting them 2022-07-22 19:19:59 +02:00
qwindow Do not use QExposedEvent::region() in internal code 2022-07-13 16:45:00 +02:00
CMakeLists.txt CMake: Add BUILTIN_TESTDATA option to qt_internal_add_test 2022-02-11 21:54:44 +01:00