qt5base-lts/tests/auto/gui
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
..
image Fix typos in docs and comments 2022-06-15 21:31:02 +02:00
itemmodels Use QAbstractItemModelTester or QFileSystemModel 2022-05-18 12:58:06 +02:00
kernel Ensure list has elements before getting them 2022-07-22 19:19:59 +02:00
math3d Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
painting unblacklist passing tests 2022 2022-06-23 01:36:01 +02:00
platform Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengl QOpenGLBuffer: add move-SMFs and swap()s 2022-07-20 13:15:55 +02:00
qopenglconfig Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qvulkan Work around lavapipe bug in tst_qvulkan 2022-06-16 17:29:36 +00:00
rhi rhi: Clean up some inconsistencies 2022-07-12 17:16:37 +02:00
text Do not use QTextFormat::FontFamily when building with QT_DISABLE_DEPRECATED_BEFORE >= 0x060000 2022-07-21 19:59:08 +02:00
util Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
CMakeLists.txt Move QtX11Extras into QtGui as private API 2021-05-10 21:19:46 +00:00