Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
492ff35c
Commit
492ff35c
authored
Jul 26, 2016
by
Don Gagne
Browse files
Remove 4 point polygon test
Affect on grid is to specific to details of polygon to test
parent
3112498c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/MissionManager/ComplexMissionItemTest.cc
View file @
492ff35c
...
@@ -137,30 +137,6 @@ void ComplexMissionItemTest::_testAddPolygonCoordinate(void)
...
@@ -137,30 +137,6 @@ void ComplexMissionItemTest::_testAddPolygonCoordinate(void)
for
(
int
i
=
0
;
i
<
polyList
.
count
();
i
++
)
{
for
(
int
i
=
0
;
i
<
polyList
.
count
();
i
++
)
{
QCOMPARE
(
polyList
[
i
].
value
<
QGeoCoordinate
>
(),
_polyPoints
[
i
]);
QCOMPARE
(
polyList
[
i
].
value
<
QGeoCoordinate
>
(),
_polyPoints
[
i
]);
}
}
_complexItem
->
setDirty
(
false
);
_multiSpy
->
clearAllSignals
();
// Forth call to addPolygonCoordinate should trigger:
// polygonPathChanged
// dirtyChanged
// Grid is generated again on polygon change which triggers:
// lastSequenceNumberChanged - number of internal mission items changes
// gridPointsChanged - grid points show up for the first time
// exitCoordinateChanged - grid generates new exit coordinate
// Note: Given the data set the entry coordinate stays the same
_complexItem
->
addPolygonCoordinate
(
_polyPoints
[
3
]);
QVERIFY
(
_multiSpy
->
checkOnlySignalByMask
(
polygonPathChangedMask
|
lastSequenceNumberChangedMask
|
gridPointsChangedMask
|
exitCoordinateChangedMask
|
dirtyChangedMask
));
seqNum
=
_multiSpy
->
pullIntFromSignalIndex
(
lastSequenceNumberChangedIndex
);
QVERIFY
(
seqNum
>
0
);
polyList
=
_complexItem
->
polygonPath
();
QCOMPARE
(
polyList
.
count
(),
4
);
for
(
int
i
=
0
;
i
<
polyList
.
count
();
i
++
)
{
QCOMPARE
(
polyList
[
i
].
value
<
QGeoCoordinate
>
(),
_polyPoints
[
i
]);
}
}
}
void
ComplexMissionItemTest
::
_testClearPolygon
(
void
)
void
ComplexMissionItemTest
::
_testClearPolygon
(
void
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment