From 15be466da2709bb7f71b963edbacfc19d3a028e7 Mon Sep 17 00:00:00 2001 From: abcd Date: Mon, 30 Jul 2012 12:12:30 +1000 Subject: 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 --- tests/auto/nokia_services/places_semiauto/tst_places.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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() -- cgit v1.2.1