qt5base-lts/tests/auto/widgets/dialogs
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
..
qcolordialog Updated license headers 2016-01-21 18:55:18 +00:00
qdialog tests: blacklist tst_QDialog::showFullScreen() on macOS 10.13 in CI 2018-08-22 14:32:38 +00:00
qerrormessage Updated license headers 2016-01-21 18:55:18 +00:00
qfiledialog Refactor tst_QFiledialog::clearLineEdit() 2018-08-24 12:00:31 +00:00
qfiledialog2 Merge remote-tracking branch 'origin/5.11' into dev 2018-05-24 16:29:14 +02:00
qfilesystemmodel tests/auto/widgets/dialogs: Avoid unconditional qWait()s 2018-05-14 10:39:00 +00:00
qfontdialog qtbase: Remove BLACKLIST files which are no longer active 2018-02-12 17:40:12 +00:00
qinputdialog Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qmessagebox Merge remote-tracking branch 'origin/5.11' into dev 2018-08-16 18:48:59 +02:00
qprogressdialog tests/auto/widgets/dialogs: Avoid unconditional qWait()s 2018-05-14 10:39:00 +00:00
qsidebar winrt: make dialog auto tests pass 2018-06-22 05:02:43 +00:00
qwizard winrt: make dialog auto tests pass 2018-06-22 05:02:43 +00:00
dialogs.pro winrt: Remove qfiledialog and qmessagebox auto tests for now 2018-05-28 06:50:45 +00:00