summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorabcd <qt-info@nokia.com>2011-07-25 18:03:33 +1000
committerAaron McCarthy <aaron.mccarthy@nokia.com>2011-07-26 04:32:40 +0200
commitba173086b432f20f573b0b74d1a2b606e4e2b84f (patch)
tree18d46a49f7bddd81172ffadaf2064e7e7fbf0200 /tests
parent92b852cc98995cd8abbc78fc1b5f8b134c4bd0dc (diff)
downloadqtlocation-ba173086b432f20f573b0b74d1a2b606e4e2b84f.tar.gz
Remove placeScore field
This field is meant to represent the quality of the data of a place, for an end user this isn't very useful. The REST API doesn't even currently support this field so remove it. Change-Id: Id3c9ded99262fad6de360814e0119fd15cef1e8e Reviewed-on: http://codereview.qt.nokia.com/2092 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qgeoplace/tst_qgeoplace.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/tests/auto/qgeoplace/tst_qgeoplace.cpp b/tests/auto/qgeoplace/tst_qgeoplace.cpp
index 0651db3e..547781a6 100644
--- a/tests/auto/qgeoplace/tst_qgeoplace.cpp
+++ b/tests/auto/qgeoplace/tst_qgeoplace.cpp
@@ -16,7 +16,6 @@ private Q_SLOTS:
void constructorTest();
void additionalDataTest();
void alternativeNamesTest();
- void placeScoreTest();
void businessInformationTest();
void categoriesTest();
void contactsTest();
@@ -133,14 +132,6 @@ void tst_QGeoPlace::reviewCountTest()
QVERIFY2(testObj.reviewCount() == 10, "Wrong value returned");
}
-void tst_QGeoPlace::placeScoreTest()
-{
- QGeoPlace testObj;
- QVERIFY2(testObj.placeScore() == 0, "Wrong default value");
- testObj.setPlaceScore(10.123);
- QVERIFY2(testObj.placeScore() == 10.123, "Wrong value returned");
-}
-
void tst_QGeoPlace::ratingTest()
{
QGeoPlace testObj;
@@ -338,7 +329,7 @@ void tst_QGeoPlace::operatorsTest()
QGeoPlace testObj2;
testObj2 = testObj;
QVERIFY2(testObj == testObj2, "Not copied correctly");
- testObj2.setPlaceScore(10.1234);
+ testObj2.setPlaceId("342-456");
QVERIFY2(testObj != testObj2, "Object should be different");
}