Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KItinerary
Commits
cec69512
Commit
cec69512
authored
Mar 21, 2021
by
Volker Krause
Browse files
Fix unit test without ZXing
parent
3153388a
Changes
1
Hide whitespace changes
Inline
Side-by-side
autotests/extractordocumentnodetest.cpp
View file @
cec69512
...
...
@@ -4,6 +4,8 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "config-kitinerary.h"
#include <KItinerary/ExtractorDocumentNode>
#include <KItinerary/ExtractorDocumentNodeFactory>
#include <KItinerary/ExtractorDocumentProcessor>
...
...
@@ -67,6 +69,9 @@ private Q_SLOTS:
QCOMPARE
(
c1
.
location
().
toInt
(),
0
);
c1
.
processor
()
->
expandNode
(
c1
,
&
engine
);
#ifndef HAVE_ZXING
QSKIP
(
"No ZXing support"
);
#endif
QCOMPARE
(
c1
.
childNodes
().
size
(),
1
);
auto
c11
=
c1
.
childNodes
()[
0
];
QVERIFY
(
!
c11
.
isNull
());
...
...
@@ -94,6 +99,9 @@ private Q_SLOTS:
QCOMPARE
(
c2
.
location
().
toInt
(),
1
);
c2
.
processor
()
->
expandNode
(
c2
,
&
engine
);
#ifndef HAVE_ZXING
QSKIP
(
"No ZXing support"
);
#endif
QCOMPARE
(
c2
.
childNodes
().
size
(),
1
);
auto
c21
=
c2
.
childNodes
()[
0
];
QVERIFY
(
!
c21
.
isNull
());
...
...
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