summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove use of deprecated VariantStream APIMartin Zielinski2012-02-012-6/+2
| | | | | | | | | | | | Also removes the dependency on mt-client, as this is the last usage of it in the code. Removes config.tests as they are testing for Qt modules or Qt Addon modules which can be tested for in the .pro files with !isEmpty(QT.foo.name). Change-Id: I2a621d73ef76de51154ad9ce80fb2c84881ae3de Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* adding tests for Places APINatalia Shubina2012-02-011-84/+308
| | | | | | | | | | | | | | | fixing typos updating some links due REST server data changed adding tests for - categories, - places, - bounding box, - bounding circle, - favorites, - locale handling Change-Id: I7b24723fa95f4d4d878b53664d24e94009e1f1c9 Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
* Correctly implement initialize categories in jsondb pluginabcd2012-01-311-1/+24
| | | | | | | | | | | | | | | | | | For ease of use the category functions are synchronous, to achieve this we keep a cached version of the categories when initializeCategories is called. We don't expect there to be a lot of categories and so there shouldn't be much memory consumption. As a result of these cached categories we no longer need to use an event loop whenever categories are queried. The event loop was problematic when multiple calls were made to the function while the event loop was still active. Change-Id: Iff8482ce9affcec82bee5c12b325e64b77624c65 Reviewed-by: abcd <amos.choy@nokia.com>
* Add MapMouseArea support for MapPolyline, include borders on othersAlex Wilson2012-01-311-0/+3
| | | | | | | | | | | | | | | | * Borders are now clickable on MapCircle, MapPolygon, and MapRectangle. * Still issues with the top and left edges of a border not being clickable (beyond the 0,0 point on the object). These are not easily solved in the current implementation of MapMouseArea. * Amended autotests that depend on the visible width of a MapRectangle to set border width to zero. * Invisible borders are now totally excluded from calculation during update. Change-Id: Iad711b0b5aca55b51d4dd31767c472c2331bdfb2 Reviewed-by: David Laing <david.laing@nokia.com>
* Search to match by substring instead of 'StartsWith'abcd2012-01-311-3/+6
| | | | | Change-Id: I9cd36bf200a37207db3b54c0bf69d21ca2f1cde2 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-30138-138/+138
| | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: I00c66363046e475e6924aafd221483c7fad5c0d9 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix inconsistency, use childCategoryIds over childrenCategoryIdsabcd2012-01-302-4/+4
| | | | | Change-Id: I37dfa12027bcc5424e65aa515f512b18a94692c4 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Refactor Iconsabcd2012-01-3018-187/+938
| | | | | Change-Id: I702e8a1b6f0e80cb990315165f1bf331a82e65a5 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-23138-138/+138
| | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I3850177e14291901e924f9c27ba09e75df00f96a Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Adding positioning tests, logo testNatalia Shubina2012-01-201-12/+115
| | | | | | | | | | adding positioning tests adding logo test update places test due UI changes adding 3 draft tests for places Change-Id: I4a53b40afdf392a339298e50e5d90dddcba37fd1 Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
* Unify behaviour of BoundingBox and BoundingCircle elements.Aaron McCarthy2012-01-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | QObject based properties of BoundingBox effectively had value sematics, i.e. the object's properties were updated not the object pointer. Both BoundingBox and BoundingCircle now update the object pointers. The canonical property values are stored in the QGeoBoundingBox and QGeoBoundingCircle data members, these are then synchronised with the QObject based properties. A number of optimisations have also been made. QObject based properties are initialised on read, meaning that if a particular property is not used it will not be constructed. Value properties (width, height, radius) are cached so that repeated property reads do not result in multiple nested function calls. It is also possible to make a valid bounding box by setting its center coordinate. The resulting bounding box will have a width and height of 0 degrees. Change-Id: I2569452e9a92c0b84de1b8f690655e2bed19ecb1 Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Use QTRY_COMPARE/VERIFY_WITH_TIMEOUT from QTestLib.Friedemann Kleint2012-01-161-0/+3
| | | | | Change-Id: Ibe1648fabd96b8be5a64e4b6ee917fe60d69ec8a Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Build fixes for removal of TouchPoint::PrimaryAlex Wilson2012-01-162-20/+2
| | | | | | | see http://codereview.qt-project.org/12928 Change-Id: I3ea3223a2f5579fcef2c58d28e8fe15b82b3f4a4 Reviewed-by: David Laing <david.laing@nokia.com>
* Implement cross-referencing of Placesabcd2012-01-138-5/+531
| | | | | | | | Cross referenceing means we can detect whether a place from one plugin/manager is already in another plugin/manager Change-Id: Ice1834446a61e30e02f869e1d383f6d8698b8db6 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* added map items' testsNatalia Shubina2012-01-121-37/+335
| | | | | Change-Id: Iffa9145bb106c41cb10e9d2d5a0d1abf63adfc67 Reviewed-by: Daron Andrew Edie <daron.edie@nokia.com>
* Update copyright year in Nokia copyright headers.Jason McDonald2012-01-114-4/+4
| | | | | | | Update copyright headers from before 2011. Change-Id: Iae372d31350cebca9cbcdc0dbd2fdc316d7ed82f Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Improve unit tests for CategoryModel.Aaron McCarthy2012-01-102-0/+164
| | | | | | | Tests fetching new categories and hierarchical property. Change-Id: Ie9e2370dc49e65add83aa2154cd78a22ada548d9 Reviewed-by: abcd <amos.choy@nokia.com>
* Basic set/get tests for all Places QML elements.Aaron McCarthy2012-01-109-2/+708
| | | | | Change-Id: I0cba5e3c14f22a07c7647571214b1bf66b557d94 Reviewed-by: abcd <amos.choy@nokia.com>
* Test setting QML objects from C++.Aaron McCarthy2012-01-101-0/+108
| | | | | Change-Id: I1db9c1d6724a83b027d4aadd6870a568e346c58f Reviewed-by: abcd <amos.choy@nokia.com>
* Renames MapPinch => MapPinchArea, adds docs for it and MapFlickableAlex Wilson2012-01-103-45/+45
| | | | | Change-Id: Iad08ce86cf620999178dc3a00786ade980144f7f Reviewed-by: David Laing <david.laing@nokia.com>
* Make QNmeaPositionInfoSource tests less aggressive with timingAlex Wilson2012-01-091-28/+26
| | | | | | | Should hopefully reduce flakiness. Change-Id: I9b459fb2b16dd6b653c9726c23d25dcedc0233f6 Reviewed-by: David Laing <david.laing@nokia.com>
* Adding simple autotest for new required propertyAlex Wilson2012-01-061-0/+8
| | | | | Change-Id: I8b1188ab4ac8af79352cd64f7cee363405bb07a6 Reviewed-by: David Laing <david.laing@nokia.com>
* Fixing up autotests for Plugin elementAlex Wilson2012-01-061-48/+28
| | | | | Change-Id: I74b8983faf8ed83466098b866886462b6ff51f99 Reviewed-by: David Laing <david.laing@nokia.com>
* Making hold-and-press test delay longer to avoid flakinessAlex Wilson2012-01-061-1/+1
| | | | | | | | | Test has broken a few times by only delaying for 850ms where it needs >=800ms to register. Bumped up to 1s to try to make sure it can pass in adverse conditions. Change-Id: I61271053bf2144ca98074217d91c05d658e3540a Reviewed-by: David Laing <david.laing@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-06125-125/+125
| | | | | Change-Id: I496795d13a615be8d252ca20a40dd2c5ba84ed60 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Renames the new mapping classes.David Laing2012-01-052-30/+30
| | | | | | | | | | | Also moves them into src/location/maps. We still need to take a closer look at which classes are public and which are private, and then do the associated file renaming and addition of private header warnings. Change-Id: Ide0225ad5d5dc23834baaa9f6841646e4c92de39 Reviewed-by: Juha Vuolle <juha.vuolle@nokia.com>
* Fixed compile on Windows in release mode.Rohan McGovern2012-01-042-2/+0
| | | | | | | | | | | | It is not valid to unconditionally enable debug mode on platforms where debug/release affects linkage. On these platforms, debug mode can only be used if the debug libraries are enabled, and release mode can only be used if the release libraries are enabled. Let the build system set the correct mode. Change-Id: I217eb0826ca57cfab3c753cb0e1e961b86357cd2 Reviewed-by: Alex <alex.blasche@nokia.com>
* Improve unit test for Place element.Aaron McCarthy2012-01-042-22/+149
| | | | | | | | | | Attribution property testing. Icon property testing. Remove unnecesary property setters for detailsFetched, extendedAttributes and contactDetails. Change-Id: Iae93bffa8b9f6ffdf798418e99baceb76159df28 Reviewed-by: abcd <amos.choy@nokia.com>
* Unit test for QPlaceSearchSuggestionReplyabcd2012-01-033-0/+116
| | | | | Change-Id: I0521b9b272dc536f98199de83ecbda0cf2006eba Reviewed-by: abcd <amos.choy@nokia.com>
* added routing testsNatalia Shubina2011-12-291-430/+415
| | | | | | | | | | | | | | | | - fixed typo in qml_select_service_provider - removed third_party_position_source test, covered by unit tests - updated qml_pan_a_map to check behavior on hight zoom levels - removed tests for district, county and country code. Rest plugin doesn't support requests with such parameters. - removed qml_shift_to_the_given_offset, covered by unit tests - added rouiting tests - added locale tests for geocoding and routing - added border wrapping test - replaced "Press" with "Select" for uniformity Change-Id: Ib76b1b651d6ba572d52de08e809f198c98acd6b1 Reviewed-by: Alex Wilson <alex.wilson@nokia.com> Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com>
* Fixing up a bunch of minor compile warningsAlex Wilson2011-12-282-0/+7
| | | | | | | | Mostly just using Q_UNUSED in appropriate spots. Also commenting out some unused constants. Change-Id: Id43e171bf3a34f7c11e366b14eadb42f08f0096d Reviewed-by: Alex <alex.blasche@nokia.com>
* Adding more unit tests for QML Coordinate#atDistanceAndAzimuthAlex Wilson2011-12-281-7/+26
| | | | | | Task-number: QTBUG-23332 Change-Id: I17357a82ead9f0aac7cc3b5a361c905a4b43861a Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com>
* Some basic mapitem docs and related autotests.Juha Vuolle2011-12-232-1/+312
| | | | | | Change-Id: I221d1febb36449a06b238129ebf5239739f0d5d1 Reviewed-by: Alex <alex.blasche@nokia.com> Reviewed-by: Juha Vuolle <juha.vuolle@nokia.com>
* Adds coordinateChanged signal to QML CoordinatesAlex Wilson2011-12-231-0/+2
| | | | | | | | First step towards teaching map items to listen to changes in their source coordinates and lists. Change-Id: Iacf6078b5517a52c82c906d839c332a459453f80 Reviewed-by: Juha Vuolle <juha.vuolle@nokia.com>
* Adds azimuthTo and atDistanceAndAzimuth to QML CoordinatesAlex Wilson2011-12-221-0/+110
| | | | | | | | Includes auto-tests for QML coordinates and the new functions. Task-number: QTBUG-20471 Change-Id: I87a35f4f347298731000629dbf5c6c07fa03ed41 Reviewed-by: David Laing <david.laing@nokia.com>
* Add polygon item mouse area support.Juha Vuolle2011-12-222-0/+21
| | | | | Change-Id: I072de0f11105abecee16a4507bfb4411d63d754c Reviewed-by: David Laing <david.laing@nokia.com>
* Remove duplicates of QTRY_VERIFY.Jason McDonald2011-12-212-30/+0
| | | | | | | This macro is now provided by testlib via the QtTest/QtTest header. Change-Id: I14a090e77bc2d95808117bd6bc0404962f1a2e15 Reviewed-by: Alex <alex.blasche@nokia.com>
* Add QML locale functionality to Placesabcd2011-12-211-0/+16
| | | | | Change-Id: I0380f3b6e7945909eee7c00230a976da0ac53d6e Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Map item autotests and related fixes.Juha Vuolle2011-12-211-25/+377
| | | | | Change-Id: Ib44f55814baea9e8908a4092102bd42b8b18d5eb Reviewed-by: David Laing <david.laing@nokia.com>
* Unit tests for User element.Aaron McCarthy2011-12-201-0/+102
| | | | | Change-Id: I4f9944f24ff15033851988571d45a8ed2c1e8391 Reviewed-by: abcd <amos.choy@nokia.com>
* Improve coverage of QPlace unit testabcd2011-12-201-30/+106
| | | | | | | | | | | | Also make the attribute types in the test lower case because the standard attributes are meant to be lower case. (The qml looks better this way e.g. place.extendedAttributes.smoking instead of place.extendedAttributes.Smoking) Change-Id: I33837ad1fdf4d1c028daa7742e1e4a6d2b6432d3 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Unit tests + corrections for Contact Details in QMLabcd2011-12-201-0/+54
| | | | | | | | | | | | | | | | | | | | The behaviour for contact details wasn't quite correct in the instance where a single detail is assigned rather than a list. For now there is a workaround by listening to the valueChanged signal of the QDeclarativePropertyMap to detect if a single item is being added and if so turn it into a list with one element. The correction solution would be to override the write behaviour of QDeclaratiePropertyMap but this can't be done until QTBUG-23183 is addressed. Also add some extra examples for contact detail assignment and a correction for when contact details are viewed by a ListView, we need to have modelData.label rather than just label when dealing with an object list. Change-Id: I10555b9536ae4c4172b9b49347b7b6be12c5c1ab Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Fix compile when QtJsonDb is available.Aaron McCarthy2011-12-201-4/+4
| | | | | | | | These changes were missing from 651acf953b374ae7feadaf4db6be85e8c411c1cb. Change-Id: I15edc61e9674f070b4f3805d5e3b5c7d466f991c Reviewed-by: abcd <amos.choy@nokia.com>
* Unit tests for Supplier element.Aaron McCarthy2011-12-201-0/+135
| | | | | Change-Id: I0186ddcdf28d8ffff91af9a403b7218b273a9cfc Reviewed-by: abcd <amos.choy@nokia.com>
* Unit tests for Icon element.Aaron McCarthy2011-12-202-4/+213
| | | | | Change-Id: Ib0bce554ce328366067513f9e15a6a6806eeeefc Reviewed-by: Alex <alex.blasche@nokia.com>
* Unit tests for Ratings element.Aaron McCarthy2011-12-201-0/+106
| | | | | Change-Id: I365e2ffc6ce48fc4c3317fa51ff14caed253cca5 Reviewed-by: Alex <alex.blasche@nokia.com>
* Unit test for QPlaceReplyabcd2011-12-193-0/+130
| | | | | Change-Id: I637d1cda2c278e0d6994e39263d32814f56da6d7 Reviewed-by: abcd <amos.choy@nokia.com>
* Add unit tests for QGeoRouteSegment and QGeoRoutingManageralex2011-12-1911-0/+923
| | | | | | | This includes a plug-in for testing the routing manager. Change-Id: I8c8da33bf04831ffc3a20304293c338285b73e96 Reviewed-by: David Laing <david.laing@nokia.com>
* Fix threading issue for map itemMichal Klocek2011-12-181-6/+12
| | | | | | | | | | * restrict node access only to updatePaintNode * add dirty flags * move gemoetry calcualtion to declaratvie class * fix missing first update call Change-Id: Ie1a6e5e6fcde9d336d72783dfdf22e39bf53c285 Reviewed-by: Juha Vuolle <juha.vuolle@nokia.com>
* Autotest improvements and additions.Juha Vuolle2011-12-1612-30/+240
| | | | | | | | | | * Part of tests disabled (see QTBUG-23201) * Removed some testcase build- and runtime warnings. * Made one testcase less timing sensitive (unstable). * Some new map item tests. Change-Id: I238f921410c665996b2db1b098716476873a4f02 Reviewed-by: Juha Vuolle <juha.vuolle@nokia.com>