diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2009-08-06 07:52:15 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2009-08-06 07:52:15 (GMT) |
commit | f5979a98bab248ce07567e72258257f78424e835 (patch) | |
tree | 39af15283d5d86fd6d01e83c3cbc60e6c7d08bae /tests/auto/qfiledialog | |
parent | 56b349951a70f3ab95e334e41e37f017e91cf481 (diff) | |
download | Qt-f5979a98bab248ce07567e72258257f78424e835.zip Qt-f5979a98bab248ce07567e72258257f78424e835.tar.gz Qt-f5979a98bab248ce07567e72258257f78424e835.tar.bz2 |
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')
-rw-r--r-- | tests/auto/qfiledialog/tst_qfiledialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qfiledialog/tst_qfiledialog.cpp b/tests/auto/qfiledialog/tst_qfiledialog.cpp index e4fec1d..f2ff4f2 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(); |