diff options
author | abcd <amos.choy@nokia.com> | 2012-07-30 12:12:30 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-06 11:19:22 +0200 |
commit | 15be466da2709bb7f71b963edbacfc19d3a028e7 (patch) | |
tree | 63e2603001b415c60e9548903695f0235e215f43 /tests | |
parent | 8568f4add64e070667e8255bb7b113d9e935e407 (diff) | |
download | qtlocation-15be466da2709bb7f71b963edbacfc19d3a028e7.tar.gz |
Fix incorrect error code during details fetch for nokia plugin
Previously a CommunicationError was returned if the id did not exist,
this was because an incorrect id would result in a non-existent URL
being used. Now we make the assumption if the URL content is not
found, then it must be because the id did not exist. In such
a case we can return a PlaceDoesNotExistError.
Change-Id: Ibfc21b826e0514fd694cb69d0372ef99e46e768e
Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/nokia_services/places_semiauto/tst_places.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/nokia_services/places_semiauto/tst_places.cpp b/tests/auto/nokia_services/places_semiauto/tst_places.cpp index f0f9cf1b..4784616e 100644 --- a/tests/auto/nokia_services/places_semiauto/tst_places.cpp +++ b/tests/auto/nokia_services/places_semiauto/tst_places.cpp @@ -419,7 +419,7 @@ void tst_QPlaceManagerNokia::details() //fetch the details of a non-existent place QVERIFY(doFetchDetails(QStringLiteral("does_not_exist"), &place, - QPlaceReply::CommunicationError)); + QPlaceReply::PlaceDoesNotExistError)); } void tst_QPlaceManagerNokia::categories() |