qt6-bb10/tests/auto/widgets
Friedemann Kleint 96c202e981 Refactor tst_QFiledialog::clearLineEdit()
The test had some shortcomings:
- Flakyness due to not waiting for the file dialog list
  to be populated.
- It assumed that the hardcoded directory name
  ____aaaa... always would show first in the list. This may
  not be true on Windows, where names like .designer show above.
- On failure, the test directory would leak.

This manifested in failures like:

FAIL!  : tst_QFiledialog::clearLineEdit() '(fd.directory().absolutePath() != QDir::home().absolutePath())' returned FALSE. ()

To fix this, use QTemporaryDir and introduce predicates that
can be used to check whether the dialog has been populated
and the right file/directory is selected by pressing cursor down.
Use the temporary directory as not to pollute the home directory.

Change-Id: Ic504b91325993dcd6099c99e125e7ed8ff1d7672
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Faure <david.faure@kdab.com>
2018-08-24 12:00:31 +00:00
..
dialogs Refactor tst_QFiledialog::clearLineEdit() 2018-08-24 12:00:31 +00:00
effects tst_QGraphicsEffect: Allow multiple paint events in itemHasNoContents() 2018-05-21 06:05:15 +00:00
graphicsview winrt: Fix tst_QGraphicsItem::cursor 2018-08-06 05:24:38 +00:00
itemviews winrt: Implement QPlatformCursor::setPos 2018-08-06 05:24:35 +00:00
kernel Extend blacklisting of tst_QWidget::maskedUpdate to cover all openSUSEs 2018-08-22 14:32:55 +00:00
styles Merge branch '5.11' into dev 2018-07-31 13:33:14 +02:00
util winrt: Make widgets/util auto tests pass 2018-05-25 11:02:23 +00:00
widgets Add debugging output to help diagnose cause of tst_qspinbox failure 2018-08-16 10:17:04 +00:00
widgets.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00