summaryrefslogtreecommitdiff
path: root/tests/auto/qplacesearchrequest
diff options
context:
space:
mode:
authorabcd <amos.choy@nokia.com>2012-06-13 19:07:27 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-14 05:14:26 +0200
commit53e64c5ddc4fec4bdb0d66410808c8b3b90c90c5 (patch)
treea7581c7b43e97829d8a7cc6ab40bbb1d3f4d9438 /tests/auto/qplacesearchrequest
parent1428c9b43901b7f8ecf0ebc8c19f5fb15e2058b1 (diff)
downloadqtlocation-53e64c5ddc4fec4bdb0d66410808c8b3b90c90c5.tar.gz
Remove corrections
The new REST server doesn't support did you mean corrections. This combined with the fact that a more generic solution to provide corrections is intended to be provided later on means that it is not worthwhile providing corrections as they are currently implemented, they will soon be deprecated anyway. Change-Id: I674aba99dc3cdc0eb0fc48d928a2146f5e792a2f Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'tests/auto/qplacesearchrequest')
-rw-r--r--tests/auto/qplacesearchrequest/tst_qplacesearchrequest.cpp19
1 files changed, 3 insertions, 16 deletions
diff --git a/tests/auto/qplacesearchrequest/tst_qplacesearchrequest.cpp b/tests/auto/qplacesearchrequest/tst_qplacesearchrequest.cpp
index 2b5c510b..76139e3f 100644
--- a/tests/auto/qplacesearchrequest/tst_qplacesearchrequest.cpp
+++ b/tests/auto/qplacesearchrequest/tst_qplacesearchrequest.cpp
@@ -62,7 +62,6 @@ private Q_SLOTS:
void boundingCircleTest();
void boundingBoxTest();
void searchAreaTest();
- void maximumCorrectionsTest();
void visibilityScopeTest();
void relevanceHintTest();
void operatorsTest();
@@ -165,16 +164,6 @@ void tst_QPlaceSearchRequest::searchAreaTest()
QVERIFY2(query->searchArea() == box, "New search area not assigned");
}
-void tst_QPlaceSearchRequest::maximumCorrectionsTest()
-{
- QPlaceSearchRequest testObj;
- QVERIFY2(testObj.maximumCorrections() == 0, "Wrong default value");
- testObj.setMaximumCorrections(10);
- QVERIFY2(testObj.maximumCorrections() == 10, "Wrong value returned");
- testObj.clear();
- QVERIFY2(testObj.maximumCorrections() == 0, "Wrong cleared value returned");
-}
-
void tst_QPlaceSearchRequest::visibilityScopeTest()
{
QPlaceSearchRequest query;
@@ -202,13 +191,13 @@ void tst_QPlaceSearchRequest::relevanceHintTest()
void tst_QPlaceSearchRequest::operatorsTest()
{
QPlaceSearchRequest testObj;
- testObj.setSearchTerm("testValue");
+ testObj.setSearchTerm(QLatin1String("testValue"));
QPlaceSearchRequest testObj2;
testObj2 = testObj;
QVERIFY2(testObj == testObj2, "Not copied correctly");
- testObj2.setMaximumCorrections(-5);
+ testObj2.setSearchTerm(QLatin1String("abc"));
QVERIFY2(testObj != testObj2, "Object should be different");
- testObj2.setMaximumCorrections(0);
+ testObj2.setSearchTerm(QLatin1String("testValue"));
QVERIFY(testObj == testObj2);
QGeoBoundingBox b1(QGeoCoordinate(20,20), QGeoCoordinate(10,30));
@@ -264,7 +253,6 @@ void tst_QPlaceSearchRequest::clearTest()
QPlaceCategory category;
category.setName("Fast Food");
req.setCategory(category);
- req.setMaximumCorrections(5);
req.setLimit(100);
req.setOffset(5);
@@ -272,7 +260,6 @@ void tst_QPlaceSearchRequest::clearTest()
QVERIFY(req.searchTerm().isEmpty());
QVERIFY(req.searchArea() == QGeoBoundingArea());
QVERIFY(req.categories().isEmpty());
- QVERIFY(req.maximumCorrections() == 0);
QVERIFY(req.limit() == -1);
QVERIFY(req.offset() == 0);
}