summaryrefslogtreecommitdiffstats
path: root/tests/auto/qcompleter
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@sosco.com>2009-10-26 16:55:47 +0100
committerShane Kearns <shane.kearns@sosco.com>2009-10-26 16:55:47 +0100
commit91823996c00b1ba952be45eaa69a98816e6f27fd (patch)
tree0f8774e35395122555e271deeb579e1cc4faca6f /tests/auto/qcompleter
parent32815bd71b08f1a8bbec04e60a973a1fa2d9febe (diff)
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/auto/qcompleter')
-rw-r--r--tests/auto/qcompleter/tst_qcompleter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qcompleter/tst_qcompleter.cpp b/tests/auto/qcompleter/tst_qcompleter.cpp
index 43205e157c..2a17984d5f 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