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
05613ab8
Commit
05613ab8
authored
Apr 28, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wait for pluginReady
parent
29e114fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
SetupViewTest.cc
src/VehicleSetup/SetupViewTest.cc
+9
-5
No files found.
src/VehicleSetup/SetupViewTest.cc
View file @
05613ab8
...
...
@@ -71,6 +71,15 @@ void SetupViewTest::_clickThrough_test(void)
linkMgr
->
connectLink
(
link
);
QTest
::
qWait
(
5000
);
// Give enough time for UI to settle and heartbeats to go through
AutoPilotPlugin
*
autopilot
=
AutoPilotPluginManager
::
instance
()
->
getInstanceForAutoPilotPlugin
(
UASManager
::
instance
()
->
getActiveUAS
());
Q_ASSERT
(
autopilot
);
QSignalSpy
spyPlugin
(
autopilot
,
SIGNAL
(
pluginReadyChanged
(
bool
)));
if
(
!
autopilot
->
pluginReady
())
{
QCOMPARE
(
spyPlugin
.
wait
(
10000
),
true
);
}
Q_ASSERT
(
autopilot
->
pluginReady
());
// Switch to the Setup view
_mainToolBar
->
onSetupView
();
QTest
::
qWait
(
1000
);
...
...
@@ -90,11 +99,6 @@ void SetupViewTest::_clickThrough_test(void)
setupView
->
summaryButtonClicked
();
QTest
::
qWait
(
1000
);
// Click through component buttons
UASInterface
*
uas
=
UASManager
::
instance
()
->
getActiveUAS
();
Q_ASSERT
(
uas
);
AutoPilotPlugin
*
autopilot
=
AutoPilotPluginManager
::
instance
()
->
getInstanceForAutoPilotPlugin
(
uas
);
Q_ASSERT
(
autopilot
);
const
QVariantList
&
components
=
autopilot
->
vehicleComponents
();
foreach
(
QVariant
varComponent
,
components
)
{
setupView
->
setupButtonClicked
(
varComponent
);
...
...
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