summaryrefslogtreecommitdiff
path: root/tests/auto/qgeolocation
diff options
context:
space:
mode:
authorabcd <qt-info@nokia.com>2011-07-26 10:47:17 +1000
committerAaron McCarthy <aaron.mccarthy@nokia.com>2011-07-26 06:51:37 +0200
commita4db91e79695c74a20a6c293ee10f3a2b8d6bb3b (patch)
treea7aa793722990a15cd3ec8f6e8f67473f043a7f2 /tests/auto/qgeolocation
parent6644df4c5322dde974a63ba55b8b703394e8d352 (diff)
downloadqtlocation-a4db91e79695c74a20a6c293ee10f3a2b8d6bb3b.tar.gz
Remove label from geolocation
The rest API does not support labels for locations Change-Id: I2737072fe2e577926d96549233324fe38fd960c4 Reviewed-on: http://codereview.qt.nokia.com/2136 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'tests/auto/qgeolocation')
-rw-r--r--tests/auto/qgeolocation/tst_qgeolocation.cpp17
-rw-r--r--tests/auto/qgeolocation/tst_qgeolocation.h2
2 files changed, 0 insertions, 19 deletions
diff --git a/tests/auto/qgeolocation/tst_qgeolocation.cpp b/tests/auto/qgeolocation/tst_qgeolocation.cpp
index e4a7d70c..d638112f 100644
--- a/tests/auto/qgeolocation/tst_qgeolocation.cpp
+++ b/tests/auto/qgeolocation/tst_qgeolocation.cpp
@@ -72,7 +72,6 @@ void tst_QGeoLocation::constructor()
QCOMPARE(m_location.viewport(), m_viewport);
QCOMPARE(m_location.additionalData().count(), 0);
QCOMPARE(m_location.additionalData(), m_additionalData );
- QCOMPARE(m_location.label(), m_label);
QCOMPARE(m_location.locationId(), m_locationId);
}
@@ -174,16 +173,6 @@ void tst_QGeoLocation::navigationPositions()
QVERIFY(m_location.navigationPositions() != m_navigationPositions);
}
-void tst_QGeoLocation::label()
-{
- m_label = "testText";
- m_location.setLabel(m_label);
- QCOMPARE(m_location.label(), m_label);
-
- m_label = "differentText";
- QVERIFY(m_location.label() != m_label);
-}
-
void tst_QGeoLocation::locationId()
{
m_locationId = "id";
@@ -261,9 +250,6 @@ void tst_QGeoLocation::comparison()
navPos.append(QGeoCoordinate(10,2));
location.setNavigationPositions(navPos);
- //set label
- location.setLabel("label");
-
//set locationId
location.setLocationId("id");
@@ -288,8 +274,6 @@ void tst_QGeoLocation::comparison()
navPos.clear();
navPos.append(QGeoCoordinate(-5, -5));
otherLocation.setNavigationPositions(navPos);
- } else if (dataField == "label") {
- otherLocation.setLabel("otherLabel");
} else if (dataField == "locationId") {
otherLocation.setLocationId("otherId");
} else {
@@ -308,7 +292,6 @@ void tst_QGeoLocation::comparison_data()
QTest::newRow("coordinate") << "coordinate";
QTest::newRow("additionalData") << "additionalData";
QTest::newRow("navigationPositions") << "navigationPositions";
- QTest::newRow("label") << "label";
QTest::newRow("locationId") << "locationId";
}
diff --git a/tests/auto/qgeolocation/tst_qgeolocation.h b/tests/auto/qgeolocation/tst_qgeolocation.h
index 8ae94b08..bf05e8fe 100644
--- a/tests/auto/qgeolocation/tst_qgeolocation.h
+++ b/tests/auto/qgeolocation/tst_qgeolocation.h
@@ -77,7 +77,6 @@ private Q_SLOTS:
void viewport();
void additionalData();
void navigationPositions();
- void label();
void locationId();
void operators();
void comparison();
@@ -93,7 +92,6 @@ private:
QVariantHash m_additionalData;
QList<QGeoCoordinate> m_navigationPositions;
- QString m_label;
QString m_locationId;
};