diff options
author | juhvu <qt-info@nokia.com> | 2011-04-07 14:04:34 +1000 |
---|---|---|
committer | juhvu <qt-info@nokia.com> | 2011-04-07 14:04:34 +1000 |
commit | 2266b5c14d40d7e5c630688df5582b12c9c17c67 (patch) | |
tree | ff175eab7a4eb643770c821eadd81b5ee16fd859 | |
parent | 8f01b14d9e87c568207edf913052acb5eba09117 (diff) |
(on Natalia's behalf): Add location's 1.2 tests
-rw-r--r-- | sys_location/sys_location.qtt | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/sys_location/sys_location.qtt b/sys_location/sys_location.qtt index fa4dfca4c1..9d5a2126ec 100644 --- a/sys_location/sys_location.qtt +++ b/sys_location/sys_location.qtt @@ -62,6 +62,44 @@ testcase = { )); }, + third_party_position_source: function() + { + //test case for QTMOBILITY-873: Allow 3rd party position sources + prompt(twiki('---+++ Position is detected via cusom plugin + Note that GPS and internet connection is required for this test case + | *Step* | *Verification* | + | Run the testQtLocation application (this is part of BlueWeel project, sources are in git@scm.dev.nokia.troll.no:qtmobility/qtmobility-tests.git | | + | Select the Custom Service | Verify that no "Unable to register location service" and "Not valid interface." messages appear | + | Press the Update Map button | Verify that map was loaded and correct current position is displayed | + )); + }, + + shift_to_the_given_offset: function() + { + //test case for QTMOBILITY-658: Add a method to QGeoCoordinate which takes an offset and returns another QGeoCoordinate + prompt(twiki('---+++ New coordinats are calculated + Note that significand precision should be taken into account during comparing real numbers, that is why we consider 5.48417e-16 value equal to zero + | *Step* | *Verification* | + | Run the testQtLocation application | | + | Select the MapNavigation | | + | Fill in "0" in to Start Latitude field | | + | Fill in "100" in to Start Longitude field | | + | Select Distance/Bearing from *Pre-defined* dropdown list | | + | Fill "1000000, 90" in to the given field | | + | Press the Ok button | Verify that Destination fields are updated with 5.48417e-16 latitude and 108.9932 longitude | | + | Fill in "60" in to Start Latitude field | | + | Fill in "100" in to Start Longitude field | | + | Select Distance/Bearing from *Pre-defined* dropdown list | | + | Fill "1000000, 180" in to the given field | | + | Press the Ok button | Verify that Destination fields are updated with 51.0068 latitude and 100 longitude | | + | Fill in "60" in to Start Latitude field | | + | Fill in "100" in to Start Longitude field | | + | Select Distance/Bearing from *Pre-defined* dropdown list | | + | Fill "1000000, 20" in to the given field | | + | Press the Ok button | Verify that Destination fields are updated with 68.2523 latitude and 108.296 longitude | | + )); + }, + // Landmarks store_and_load_a_landmark_data: { @@ -89,6 +127,7 @@ testcase = { negative_store_and_load_a_landmark: function(name, latitude, longitude) { startApplication("landmarkbrowser"); + )); select("Add Landmark"); enter("Latitude", latitude); enter("Longitude", longitude); @@ -142,6 +181,27 @@ testcase = { compare(getText("distance"), distance2); }, + pixmap_object_zooming: function() + { + //test case for QTMOBILITY-757: Be able to prevent a QGeoMapPixmapObject from being scaled when zooming occurs + //test case for QTMOBILITY-701: Add a QGraphicsItem based map object. + //Test application testqtLocation covers just one use case meanwhile we have 8 different situation + //depending on what units and transforms are in use (we have 4 types of units (PixelUnit, MeterUnit, RelativeArcSecondUnit, AbsoluteArcSecondUnit) + //and 2 types of transforms (BilinearTransform, ExactTransform)). New set of tests has to be created as soon as testqtLocation is improved. + prompt(twiki('---+++ Pixmap object is not scaled during zooming + Note that GPS and internet connection is required for this test case + | *Step* | *Verification* | + | Run the testQtLocation application | | + | Select the MapNavigation | | + | Go to Map tab | Verify that map is loaded for current position | + | Swith to MapObject mode | | + | Tap on the screen to create pixmap object | Verify that blue square appears on the screen in place of touch | + | Switch to Pan/Zoom mode | | + | Increase zoom level | Verify that the blue square is not scaled | + | Decrease zoom level | Verify that the blue square is not scaled | + )); + }, + request_landmarks_for_given_coordinate_with_reverse_geocoding: function() { skip( "Nothing tested", SkipAll ); |