qt6-bb10/tests/baseline/shared
Volker Hilsheimer bf2ed62409 Baseline tests: improve focus setting and clearing
Set focus on the test window so that the tested widget doesn't have it.
Remove the "PublicWidget" hack, we have public QWidget APIs to find the
next widget in the focus chain that we can use to transfer focus
reliably. Use TabFocusReason to maintain existing behavior, and to
test that widgets that handle that specifically appear correctly. Clear
the focus on the test widget by setting it back to the window after
taking the "focused" snapshot.

Add QCOMPARE and QVERIFY to assert that the test is in the right state
before taking screenshots.

Pick-to: 6.7
Change-Id: Icef6ce1bb1c63c9f6cde7d0ddca82e693cace420
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-17 21:17:34 +02:00
..
baselineprotocol.cpp Change license for tests files 2024-02-04 09:56:42 +01:00
baselineprotocol.h Change license for tests files 2024-02-04 09:56:42 +01:00
baselineprotocol.pri Rename and restructure the baseline (lancelot) testing code 2021-11-16 14:01:50 +01:00
lookup3.cpp Change license for tests files 2024-02-04 09:56:42 +01:00
paintcommands.cpp GUI: add CMYK painting support 2024-04-03 18:31:36 +01:00
paintcommands.h Change license for tests files 2024-02-04 09:56:42 +01:00
qbaselinetest.cpp Baseline tests: avoid rendering items that are blacklisted on the server 2024-02-15 18:44:35 +01:00
qbaselinetest.h Baseline tests: avoid rendering items that are blacklisted on the server 2024-02-15 18:44:35 +01:00
qbaselinetest.pri Share common code for baseline-testing widget UIs 2021-11-26 22:40:54 +01:00
qwidgetbaselinetest.cpp Baseline tests: improve focus setting and clearing 2024-04-17 21:17:34 +02:00
qwidgetbaselinetest.h Baseline testing: use a full screen background behind the test window 2024-04-17 04:37:58 +02:00