diff options
author | abcd <qt-info@nokia.com> | 2011-09-12 19:17:58 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-23 06:48:23 +0200 |
commit | ded902bfb0dafa06489eead1dbf15b0b3780b530 (patch) | |
tree | a57bf593c88b3240e677c499936c66d1ff40e6ee /tests | |
parent | af230304d65f790f0833962343c7fdc00dfe798a (diff) | |
download | qtlocation-ded902bfb0dafa06489eead1dbf15b0b3780b530.tar.gz |
Remove additionalData from QPlace
additionalData is now superseded by place attributes.
In the qjsondetailsparser processAdContentPackages used to put
some content into additional data. indicating whether a place type
was an "ad_prime_plus" place. For the Qt 5 use case, for 3rd party
developers this doesn't seem necessary and neither does it seem
part of the new REST API.
Also it seems that the search type has erroneously been placed into
the additionalData. This is not necessary as the SearchResult
already has the type defined.
Change-Id: I35545b48666700a08aa93bfa0fa90ef2f301163e
Reviewed-on: http://codereview.qt-project.org/5213
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/qplace/tst_qplace.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/auto/qplace/tst_qplace.cpp b/tests/auto/qplace/tst_qplace.cpp index 6d63479e..437037e5 100644 --- a/tests/auto/qplace/tst_qplace.cpp +++ b/tests/auto/qplace/tst_qplace.cpp @@ -16,7 +16,6 @@ public: private Q_SLOTS: void constructorTest(); - void additionalDataTest(); void categoriesTest(); void descriptionsTest(); void detailsFetchedTest(); @@ -61,18 +60,6 @@ void tst_Place::constructorTest() delete testObjPtr; } -void tst_Place::additionalDataTest() -{ - QPlace testObj; - QVERIFY2(testObj.additionalData().count() == 0, "Wrong default value"); - QVariantHash list; - list.insert("key1", "value1"); - list.insert("key2", "value2"); - testObj.setAdditionalData(list); - QVERIFY2(testObj.additionalData().count() == 2, "Wrong value returned"); - QVERIFY2(testObj.additionalData()["key1"] == "value1", "Wrong value[1] returned"); -} - void tst_Place::nameTest() { QPlace testObj; |