Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
d4ce5a93
Commit
d4ce5a93
authored
Feb 07, 2017
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change unit test for latest Survey changes
parent
358c8722
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
21 deletions
+1
-21
ComplexMissionItemTest.cc
src/MissionManager/ComplexMissionItemTest.cc
+1
-21
No files found.
src/MissionManager/ComplexMissionItemTest.cc
View file @
d4ce5a93
...
...
@@ -180,26 +180,6 @@ void ComplexMissionItemTest::_testCameraTrigger(void)
{
QCOMPARE
(
_complexItem
->
property
(
"cameraTrigger"
).
toBool
(),
true
);
// Turning on/off camera triggering while there is no grid should trigger:
// cameraTriggerChanged
// dirtyChanged
// lastSequenceNumber should not change
int
lastSeq
=
_complexItem
->
lastSequenceNumber
();
_complexItem
->
setProperty
(
"cameraTrigger"
,
false
);
QVERIFY
(
_multiSpy
->
checkOnlySignalByMask
(
dirtyChangedMask
|
cameraTriggerChangedMask
));
QVERIFY
(
!
_multiSpy
->
pullBoolFromSignalIndex
(
cameraTriggerChangedIndex
));
QCOMPARE
(
_complexItem
->
lastSequenceNumber
(),
lastSeq
);
_complexItem
->
setDirty
(
false
);
_multiSpy
->
clearAllSignals
();
_complexItem
->
setProperty
(
"cameraTrigger"
,
true
);
QVERIFY
(
_multiSpy
->
checkOnlySignalByMask
(
dirtyChangedMask
|
cameraTriggerChangedMask
));
QVERIFY
(
_multiSpy
->
pullBoolFromSignalIndex
(
cameraTriggerChangedIndex
));
QCOMPARE
(
_complexItem
->
lastSequenceNumber
(),
lastSeq
);
// Set up a grid
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
...
...
@@ -209,7 +189,7 @@ void ComplexMissionItemTest::_testCameraTrigger(void)
_complexItem
->
setDirty
(
false
);
_multiSpy
->
clearAllSignals
();
lastSeq
=
_complexItem
->
lastSequenceNumber
();
int
lastSeq
=
_complexItem
->
lastSequenceNumber
();
QVERIFY
(
lastSeq
>
0
);
// Turning off camera triggering should remove two camera trigger mission items, this should trigger:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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