summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix qmake warnings.Aaron McCarthy2012-06-252-3/+3
| | | | | Change-Id: Id5ea727f3e45ed496a50bb8e2162b86fce640ad5 Reviewed-by: abcd <amos.choy@nokia.com>
* add missing 3d dependency to testOswald Buddenhagen2012-06-251-1/+1
| | | | | | | seems to have been covered through a false transitive dependency before Change-Id: Iefe158f11c5333d9a12f0270f151a6deaf5b8855 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* switch to new-style configure testsOswald Buddenhagen2012-06-251-1/+1
| | | | | Change-Id: I15247291dc56c4fd7ae2415a3de1541c9f8b295b Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Mark jsondb test as insignifcant rather than not building it at allabcd2012-06-222-2/+4
| | | | | Change-Id: If32b898672d88ba89bc1848d5fa510e90c458a51 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Refactor recommendationsabcd2012-06-213-124/+0
| | | | | | | | Recommendations can be incorporated into ordinary searches. this is more convenient for the developer. Change-Id: Ifd3e040b6b7a964227981175b074ca4f52d7579c Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Rename QGeoBoundingArea and related classes to QGeoShape.Aaron McCarthy2012-06-2138-750/+753
| | | | | | | | | | | | | | | | | | | | | QGeoBoundingArea is used for describing more than just a bounding area. Renaming it to a more appropriate name, QGeoShape. The same is done for subclasses and QML equivalents. In C++: QGeoBoundingArea -> QGeoShape QGeoBoundingCircle -> QGeoCircle QGeoBoundingBox -> QGeoRectangle In QML: BoundingArea -> GeoShape BoundingCircle -> GeoCircle BoundingBox -> GeoRectangle Change-Id: I93c6df8f1b6c5179ed52fd8354a05f709063b1cf Reviewed-by: abcd <amos.choy@nokia.com>
* Refactor Search Resultsabcd2012-06-205-35/+70
| | | | | | | | The different types of search results should be spearated into different classes. Change-Id: I21f43e7979f9f0ae1dfb51e0b619a7c855a469bb Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Add test for dragging item onto map borderIan Chen2012-06-191-25/+265
| | | | | | Task-number: QTBUG-25792 Change-Id: I7df442d5bb709c2b4c5a85e8449cd5ebe97d67a8 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Disable placemanager jsondb testabcd2012-06-191-1/+2
| | | | | | | For now disable until jsondb is officially supported. Change-Id: I3bde2b0a9ac195b4849983e180e3532eeb4d8598 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Remove correctionsabcd2012-06-144-23/+5
| | | | | | | | | | | | The new REST server doesn't support did you mean corrections. This combined with the fact that a more generic solution to provide corrections is intended to be provided later on means that it is not worthwhile providing corrections as they are currently implemented, they will soon be deprecated anyway. Change-Id: I674aba99dc3cdc0eb0fc48d928a2146f5e792a2f Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Factor out common manager testing code into it's own classabcd2012-06-124-385/+568
| | | | | Change-Id: I24ab2c94d01f8d0fbc53f13608bf1fd44af76916 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* ParentCategory role for CategoryModelabcd2012-06-101-0/+4
| | | | | Change-Id: I9b8a377fbeaf780777602ec8c0d041cf2a4431d1 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Add map item dateline testIan Chen2012-06-081-84/+210
| | | | | | Task-number: QTBUG-25792 Change-Id: I4b75010f1fd2ae577cfa12d7e7755bb0c28efaed Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Don't include QtWidgets headerKent Hansen2012-06-081-1/+1
| | | | | Change-Id: Idfcc1f470ea2cb639f19f1e173103137608c3f03 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Remove Maps from public C++ API.Aaron McCarthy2012-06-078-13/+14
| | | | | | | | | | | | The preliminary C++ Maps API was exposed to provide an interface between the QML plugin and the geo services plugins. Mark it as private API for now as it is likely to change when the full C++ API is developed. Mapping functionality is currently only available through QML. Change-Id: Id16e0f1a2165c70192047dffa40e69ab1f29ba69 Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* More unit test coverageThomas Lowe2012-06-056-2/+429
| | | | | | | | | Unit tests for doubleVector2d and 3d added A couple of new tests for viewItem and removed unused functions here, to reduce uncovered function count. Change-Id: I6eb9cfb4cf45fc00ed20c8bb8004fa4dbced5a65 Reviewed-by: Alex Wilson <alex.wilson@nokia.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* QAbstractItemModel::setRoleNames is deprecated in favour of a virtual.Aaron McCarthy2012-06-052-5/+8
| | | | | | | Based on https://codereview.qt-project.org/25219. Change-Id: I31f51bb5e532e57fd29a42e2ee6520e5f28d4cb1 Reviewed-by: abcd <amos.choy@nokia.com>
* Add test for setting polyline and polygon pathIan Chen2012-06-051-15/+37
| | | | | | Change-Id: I4ba411384038dee768c9042ee774efbf631a78a9 Reviewed-by: Thomas Lowe <thomas.lowe@nokia.com> Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Improve QGeoPositionInfoSource test a bit.Aaron McCarthy2012-06-051-59/+54
| | | | | | | | | | | | No need to cast enum test data to an int. The last known position way be invalid if non-satellite based positioning is being used and we ask for the last known position from satellite methods. Change-Id: Ibe7474473d5525d8e2429b70802313c428639222 Reviewed-by: Ian Chen <ian.1.chen@nokia.com> Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Populate error information if required parameters (app_id and token) are absent.Vladimir Bezkorovainyi2012-06-045-3/+32
| | | | | Change-Id: Ia110416b1cd64425abcb3ebcf79209b635050b0b Reviewed-by: Jean Gressmann <jean.gressmann@nokia.com>
* Set explicit testcase.timeout for slow testsRohan McGovern2012-06-013-0/+3
| | | | | | | | | | | | We'd like to decrease the default timeout for tests in the Qt Project CI so that we waste less time waiting for hanging tests. Tests which genuinely take a long time to run, such as these, should have their timeout explicitly set in their .pro file. Change-Id: I869e9a76d582660a68e01c003b1546fabc97451a Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com> Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
* QtLocation: Fix dependencies, remove network.Friedemann Kleint2012-05-294-4/+3
| | | | | | | | - The library does not seem to depend on network. - Remove unneeded dependencies on QtWidgets. Change-Id: Icdbe8a00c746a1ec0d7512f74e0f2566148fdb6e Reviewed-by: Jean Gressmann <jean.gressmann@nokia.com>
* QtLocation: Fix compiler warnings.Friedemann Kleint2012-05-292-4/+1
| | | | | | | | - Assigned/unused variables. - Signed/unsigned comparison Change-Id: I712baa90442f9fc9699965e7c7e1c5f4ca319aab Reviewed-by: Jean Gressmann <jean.gressmann@nokia.com>
* Prevent implicit copying raw pointers, which lead to double pointer deletionvladimirb2012-05-251-0/+1
| | | | | Change-Id: I293fbda64138319bf12ebbea5d26b5b113d06351 Reviewed-by: Jean Gressmann <jean.gressmann@nokia.com>
* Fix dragging of map rectangle, polygon, polyline itemsIan Chen2012-05-251-2/+4
| | | | | | | | | | | | | | | | | | Now works when dragged across dateline, over min/max latitdues, and into the screen from screen edges (in which case items were previous clipped by viewport). Also made MapRectangle a geographic element, and updated declarative_ui test to reflect this change. Docs are also updated. One behaviora1 change - calling x(), y() on map items now returns the true top left point of map item (which makes more sense) as opposed to the clipped top left point. Task-number: QTBUG-25776, QTBUG-25400, QTBUG-25794 Change-Id: I5f8d05103bdcc6ee396dabd0c787ac61861dd9cb Reviewed-by: Thomas Lowe <thomas.lowe@nokia.com> Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Refactor to allow specification for nokia icons onlyabcd2012-05-253-7/+373
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is an plugin parmeter called places.icons.custom that defines whether custom 3rd party icons or nokia icons are presented to the user for the jsondb plugin. For the nokia plugins, nokia icons can be subdivded into two types. The first is explictly set icons, the second is icons generated from the categories. In both cases the base icon is identified by the nokiaIcon key and a base icon value. However in the case of a generated icon there is a nokiaIconGenerated key that is set to true. When saving a place to the jsondb plugin, if the icon is generated, the icon data is not saved to jsondb. The category data however always is. When the place is retrieved from jsondb, the base icon will be generated from the category data. If an icon is not generated, then the base icon is saved to jsondb under the "nokiaIcon" field. When the place is retried from jsondb, this field will be used to provide the base icon. Change-Id: I9100011c519185719cdd7b62e12c2386f7f0f8d7 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* QtLocation: Removed tests for Nokia services (now Nokia private).Jean Gressmann2012-05-2437-1714/+12
| | | | | Change-Id: I4ce9159d735c282463348402cf2bc6aaa7624cee Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Explicitly provide Index namesabcd2012-05-213-7/+7
| | | | | | | | | Index names need to be unique, so explicitly provide them. Also rename prepopulation file. Change-Id: Iaa7927f6ec493fc8a4401e6a1a8aafdccb7599b0 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Coding style fixes: use true/false rather than TRUE/FALSE macrosAlex Wilson2012-05-152-6/+6
| | | | | | | C-style bool macros are considered obselete. Change-Id: I6090f3509b1852fd14e1ac57a3a9fa3b3abe6e08 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Test prepopulation index fileabcd2012-05-144-2/+106
| | | | | Change-Id: I2bab458d58b0de5cd60cf4cccd6210a49d08fbab Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Change <br> line delimeter to <br/>abcd2012-05-102-108/+108
| | | | | | | In order to match the format from the server. Change-Id: Ib3a1b2ae52855853a15ccfb70de4de5e2da42929 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Files renamed and cache only accessed through engineThomas Lowe2012-05-093-26/+26
| | | | | | | | | | | | | | | | | This isn't completely what was requested on the ticket, but it makes the cache more separate, so easier to pull in/out. Mainly this is a slight reworking of the caching to make it a bit simpler for future prefetching. In particular: mapGeometry renamed to mapScene mapImages renames to tileRequestManager and mapImages::setVisible is now tileRequestManager::requestTiles The data flow has been simplified so the requestManager speaks directly to the tiledMappingManagerEngine and this engine takes care of inspecting the single cache. Task-number: QTBUG-25560 Change-Id: I31b2e26c45f7a7ac56fe138cf1a8906a228a93d3 Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Add cancel() method to GeocodeModel and RouteModel.Aaron McCarthy2012-05-091-0/+1
| | | | | Change-Id: If575f519425da01ad2052bd2d98e36453149d05c Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Fix inconsistent API for clear() and reset() in models.Aaron McCarthy2012-05-093-22/+20
| | | | | | | | Models in Qt Location contained a mixture of clear() and reset() methods. Simplify by only providing a reset() method in all models. Change-Id: I40505793d9b387322a455064fb74e91f8052831f Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Change uses of {to,from}Ascii to {to,from}Latin1Thiago Macieira2012-05-084-6/+6
| | | | | | | | | | This operation should be a no-op anyway, since at this point in time, the fromAscii and toAscii functions simply call their fromLatin1 and toLatin1 counterparts. Task-number: QTBUG-21872 Change-Id: I2e16486d80df6257ab88dc8c3b5d9dd497a19708 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Run qplacemanager_jsondb with -reject-stale-updatesabcd2012-05-041-1/+3
| | | | | | | | When executing the qplacemanager_jsondb unit test, run an instance of jsondb with -reject-stale-updates turned on. Change-Id: I561109827693e6e01a72c4636393e9e69a575150 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Rename nokia_services routing test.Aaron McCarthy2012-05-032-25/+25
| | | | | | | | Test names need to be unique. There is already a test called tst_routing. Change-Id: I56d50b54b8f04062994c543a740665f85f1926cd Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* removing urls from geocoding testsNatalia Shubina2012-05-032-73/+135
| | | | | | | | | removing urls from geocoding tests removing nokia proxy Task-number:QTBUG-24715 Change-Id: I4e8540c1def1c5bf923fbf9231cc3f51d4dbf422 Reviewed-by: Daron Andrew Edie <daron.edie@nokia.com>
* Do not include deprecated header fileGunnar Sletta2012-05-021-1/+0
| | | | | | Change-Id: Ic78472339f926e94be5877ddad3cb1a51fef5156 Reviewed-by: Cristian Adam <cristian.adam@nokia.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* removing urls from routing testsNatalia Shubina2012-05-021-110/+131
| | | | | | Task-number: QTBUG-24715 Change-Id: Id09ff1766dcf7d40ea058431d2c4131bb7e5c31d Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
* adding meta data in positioning testsNatalia Shubina2012-05-021-0/+2
| | | | | Change-Id: I1b5cd6a8a346b49a99cceef8d17c5845059b144a Reviewed-by: Daron Andrew Edie <daron.edie@nokia.com>
* Comment out fit viewport move item testIan Chen2012-05-011-3/+3
| | | | | | | Temporary disable test as it occasionally fails in CI Change-Id: Ifc6428623ffb7a6d55c7747ceab22011f6751942 Reviewed-by: abcd <amos.choy@nokia.com>
* removing url from system testsNatalia Shubina2012-05-011-259/+521
| | | | | | | | | | removing url from system tests exanding test for favorites adding tests for categories Task-number: QTBUG-25498 Change-Id: Ice3fbbfeac863353ec79057596dd8af47285d653 Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
* Use new plugin systemDebao Zhang2012-04-301-2/+1
| | | | | Change-Id: If7c1759e561d20bb298efb3c0868197d3c9d95de Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* QtLocation/Nokia plugin: Added initial routing tests with mocked network.Jean Gressmann2012-04-3018-1/+4571
| | | | | | | | | | | | | | These tests test the server reply is properly processed and the values are what we expect in the end. Also tested: - trash reponses, - no route errors, - network errors, - backward compatible responses (those with tags the implementation doesn't (yet) understand) are tested. Change-Id: I3407e1b7f256f7af967a1f6b42f14b012e8a2909 Reviewed-by: Cristian Adam <cristian.adam@nokia.com> Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Change the way polygon coords are set in auto testsIan Chen2012-04-271-7/+2
| | | | | Change-Id: I652d31155a7f4322f3b9bf0ff04e1e9e99d5b607 Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* updating test "interaction with mapitems"Natalia Shubina2012-04-261-1/+13
| | | | | Change-Id: I1da6b9cf4cb3cb886430be745fa70f38285a4b69 Reviewed-by: Daron Andrew Edie <daron.edie@nokia.com>
* updating mapobjects system testsNatalia Shubina2012-04-261-2/+6
| | | | | | | | | adding steps into static_mapobjects test adding steps into circle test adding steps into video test Change-Id: Id5293ca4d53666a68ea52831277cbf6111584f5d Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
* updating location system testsNatalia Shubina2012-04-261-10/+20
| | | | | | | | | | | | moving default map centre to Nokia to simplify testing adding more checks into flick test adding more checks into zooming test adding more checks into pinch test adding missing step into "several map" test updating logo test as mapviewer behavior has been changed Change-Id: Ifb8601a5c875069abf1fbd0c37c2d2a17c1134c6 Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
* Add 'fit viewport to map item' function and its unit tests.Ian Chen2012-04-231-0/+593
| | | | | | | | A mouse menu in MapViewer is also added to illustrate this function Task-number: QTBUG-24482 Change-Id: I9ba519c9e6a30a39b47117c25bdc16f65df8dc2d Reviewed-by: Alex Wilson <alex.wilson@nokia.com>