summaryrefslogtreecommitdiff
path: root/tests/auto/qfiledialog/tst_qfiledialog.cpp
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-08-06 09:52:15 +0200
committerAlexis Menard <alexis.menard@nokia.com>2009-08-06 09:52:15 +0200
commitf5979a98bab248ce07567e72258257f78424e835 (patch)
tree39af15283d5d86fd6d01e83c3cbc60e6c7d08bae /tests/auto/qfiledialog/tst_qfiledialog.cpp
parent56b349951a70f3ab95e334e41e37f017e91cf481 (diff)
downloadqt4-tools-f5979a98bab248ce07567e72258257f78424e835.tar.gz
Make the test pass by setting a path where you have dirs.
The test was failing because the goal of the test expect to get only directories displayed. But if you don't have some in the current dir then it fails. home dir should be enough. Reviewed-by:TrustMe
Diffstat (limited to 'tests/auto/qfiledialog/tst_qfiledialog.cpp')
-rw-r--r--tests/auto/qfiledialog/tst_qfiledialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qfiledialog/tst_qfiledialog.cpp b/tests/auto/qfiledialog/tst_qfiledialog.cpp
index e4fec1d4a8..f2ff4f2687 100644
--- a/tests/auto/qfiledialog/tst_qfiledialog.cpp
+++ b/tests/auto/qfiledialog/tst_qfiledialog.cpp
@@ -293,12 +293,13 @@ void tst_QFiledialog::filesSelectedSignal()
QNonNativeFileDialog fd;
fd.setViewMode(QFileDialog::List);
fd.setOptions(QFileDialog::DontUseNativeDialog);
- fd.setDirectory(QDir::currentPath());
+ fd.setDirectory(QDir::homePath());
QFETCH(QFileDialog::FileMode, fileMode);
fd.setFileMode(fileMode);
QSignalSpy spyFilesSelected(&fd, SIGNAL(filesSelected(const QStringList &)));
fd.show();
+ QTest::qWait(500);
QListView *listView = qFindChild<QListView*>(&fd, "listView");
QVERIFY(listView);
QModelIndex root = listView->rootIndex();