diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-23 17:48:16 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-23 18:12:40 (GMT) |
commit | d2180e2fc3c56d56cd073a896d8449181ca28136 (patch) | |
tree | b0e2cd889f700e82920ff706c591457e00680c60 /tests/auto/qfiledialog/tst_qfiledialog.cpp | |
parent | 0f462990247d71e598346a8f96faf6d04cd4515e (diff) | |
download | Qt-d2180e2fc3c56d56cd073a896d8449181ca28136.zip Qt-d2180e2fc3c56d56cd073a896d8449181ca28136.tar.gz Qt-d2180e2fc3c56d56cd073a896d8449181ca28136.tar.bz2 |
Stabilize more test
Diffstat (limited to 'tests/auto/qfiledialog/tst_qfiledialog.cpp')
-rw-r--r-- | tests/auto/qfiledialog/tst_qfiledialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qfiledialog/tst_qfiledialog.cpp b/tests/auto/qfiledialog/tst_qfiledialog.cpp index 18875e7..d6225cd 100644 --- a/tests/auto/qfiledialog/tst_qfiledialog.cpp +++ b/tests/auto/qfiledialog/tst_qfiledialog.cpp @@ -1039,7 +1039,10 @@ void tst_QFiledialog::focus() QNonNativeFileDialog fd; fd.setDirectory(QDir::currentPath()); fd.show(); + QApplication::setActiveWindow(&fd); + QTest::qWaitForWindowShown(&fd); QTRY_COMPARE(fd.isVisible(), true); + QTRY_COMPARE(QApplication::activeWindow(), &fd); qApp->processEvents(); // make sure the tests work with focus follows mouse |