qt6-bb10/tests/auto/widgets
Andreas Buhr aeb5165cb6 Fix tst_qlineedit for offscreen rendering and tiling window managers
tst_QLineEdit::QTBUG13520_textNotVisible checks that text is visible
if a QLineEdit is set to Qt::AlignRight. To do that, it writes
some text into a line edit and checks afterwards that the first
character is in the left half of the window. This fails if the window
is larger than twice the length of the text used and thus might fail
in multiple situations where Qt is not in full control over the size
of the windows created, as is the case with tiling window managers.
This patch changes the test to not check for the first character in
the left half of the window, but instead check for the first character
be approximately at the expected position.

Pick-to: 6.0
Change-Id: I18f6de356ea20f4744f3a58cd2b1d76f6a9545a4
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
2020-12-08 15:18:41 +01:00
..
dialogs Fix tst_qfiledialog2 in case directory ~/foo exists 2020-11-24 21:50:55 +01:00
effects Get rid of all usage of QApplication:desktop 2020-10-14 06:38:43 +02:00
graphicsview Android: exclude tests crashing at start 2020-11-16 13:35:44 +02:00
itemviews Fix hashing of QPersistentModelIndex 2020-12-04 06:00:38 +00:00
kernel Add widget-based test for TouchCancel event 2020-11-30 23:11:04 +01:00
styles Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
util Skip QSystemTrayIcon unit test for offscreen platform 2020-11-24 18:54:45 +01:00
widgets Fix tst_qlineedit for offscreen rendering and tiling window managers 2020-12-08 15:18:41 +01:00
CMakeLists.txt
widgets.pro