summaryrefslogtreecommitdiffstats
path: root/tests/auto/qfiledialog2
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@nokia.com>2010-05-28 11:01:59 (GMT)
committerZeno Albisser <zeno.albisser@nokia.com>2010-05-28 15:11:36 (GMT)
commit3ce123a89cf9b8dfcf4ecb1a4e3f8c2ff5121c45 (patch)
tree45e44db280dfe72130dfd642649f34acd3848ed1 /tests/auto/qfiledialog2
parente81da1a31a60d8307cd6e48ff6f011c91a7f6d10 (diff)
downloadQt-3ce123a89cf9b8dfcf4ecb1a4e3f8c2ff5121c45.zip
Qt-3ce123a89cf9b8dfcf4ecb1a4e3f8c2ff5121c45.tar.gz
Qt-3ce123a89cf9b8dfcf4ecb1a4e3f8c2ff5121c45.tar.bz2
fix for tst_qfiledialog2 to distinguish between C: and C:/
This fix is needed because the qfiledialog uses just "C:" to display the drive entry. But "C:" in fact does not point to the drive root necessarily. Therfor qfiledialog now appends a slash, but the unit test did not expect that. Reviewed-by: TrustMe
Diffstat (limited to 'tests/auto/qfiledialog2')
-rw-r--r--tests/auto/qfiledialog2/tst_qfiledialog2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qfiledialog2/tst_qfiledialog2.cpp b/tests/auto/qfiledialog2/tst_qfiledialog2.cpp
index eee495f..9a96130 100644
--- a/tests/auto/qfiledialog2/tst_qfiledialog2.cpp
+++ b/tests/auto/qfiledialog2/tst_qfiledialog2.cpp
@@ -547,7 +547,7 @@ void tst_QFileDialog2::task226366_lowerCaseHardDriveWindows()
QTest::qWait(200);
QTest::keyClick(edit->completer()->popup(), Qt::Key_Down);
QTest::qWait(200);
- QCOMPARE(edit->text(), QString("C:"));
+ QCOMPARE(edit->text(), QString("C:/"));
QTest::qWait(2000);
//i clear my previous selection in the completer
QTest::keyClick(edit->completer()->popup(), Qt::Key_Down);
@@ -555,7 +555,7 @@ void tst_QFileDialog2::task226366_lowerCaseHardDriveWindows()
QTest::keyClick(edit, (char)(Qt::Key_C | Qt::SHIFT));
QTest::qWait(200);
QTest::keyClick(edit->completer()->popup(), Qt::Key_Down);
- QCOMPARE(edit->text(), QString("C:"));
+ QCOMPARE(edit->text(), QString("C:/"));
}
#endif