diff options
Diffstat (limited to 'tests/auto/declarative_location_core/tst_routing.qml')
-rw-r--r-- | tests/auto/declarative_location_core/tst_routing.qml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/declarative_location_core/tst_routing.qml b/tests/auto/declarative_location_core/tst_routing.qml index 0c30fb43..2540a54c 100644 --- a/tests/auto/declarative_location_core/tst_routing.qml +++ b/tests/auto/declarative_location_core/tst_routing.qml @@ -78,7 +78,6 @@ Item { TestCase { name: "RouteManeuver RouteSegment and MapRoute" RouteSegment {id: emptySegment} - RouteManeuver {id: emptyManeuver} // TODO enable when we have map route //MapRoute {id: emptyMapRoute} @@ -136,14 +135,16 @@ Item { } function test_routesegment_defaults() { + let emptyManeuver = emptySegment.maneuver compare(emptySegment.travelTime, 0) compare(emptySegment.distance, 0) compare(emptySegment.path.length, 0) compare(emptySegment.maneuver.valid, emptyManeuver.valid) compare(emptySegment.maneuver.instructionText, emptyManeuver.instructionText) - compare(emptySegment.maneuver.waypointValid, emptyManeuver.waypointValid) + compare(emptySegment.maneuver.waypoint.valid, emptyManeuver.waypoint.valid) } function test_maneuver_defaults() { + let emptyManeuver = emptySegment.maneuver compare(emptyManeuver.valid, false) compare(emptyManeuver.instructionText, "") compare(emptyManeuver.direction, RouteManeuver.NoDirection) |