diff options
author | Shane Kearns <shane.kearns@sosco.com> | 2009-10-26 15:55:47 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@sosco.com> | 2009-10-26 15:55:47 (GMT) |
commit | 91823996c00b1ba952be45eaa69a98816e6f27fd (patch) | |
tree | 0f8774e35395122555e271deeb579e1cc4faca6f /tests | |
parent | 32815bd71b08f1a8bbec04e60a973a1fa2d9febe (diff) | |
download | Qt-91823996c00b1ba952be45eaa69a98816e6f27fd.zip Qt-91823996c00b1ba952be45eaa69a98816e6f27fd.tar.gz Qt-91823996c00b1ba952be45eaa69a98816e6f27fd.tar.bz2 |
Fix QCompleter autotest for case insensitive filesystems
The directory completion test case was constructing a case insensitive
name completer, but doing a case sensitive string comparison of the test
result.
After this change, it uses the same case sensitivity the QCompleter was
constructed with to perform the comparison - which varies according to
the test case.
Reviewed-by: axis
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qcompleter/tst_qcompleter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qcompleter/tst_qcompleter.cpp b/tests/auto/qcompleter/tst_qcompleter.cpp index 43205e1..2a17984 100644 --- a/tests/auto/qcompleter/tst_qcompleter.cpp +++ b/tests/auto/qcompleter/tst_qcompleter.cpp @@ -267,7 +267,7 @@ void tst_QCompleter::filter() //QModelIndex si = completer->currentIndex(); //QCOMPARE(completer->model()->data(si).toString(), completion); - QCOMPARE(completer->currentCompletion(), completionText); + QVERIFY(0 == QString::compare(completer->currentCompletion(), completionText, completer->caseSensitivity())); } // Testing get/set functions |