Commit cec69512 authored by Volker Krause's avatar Volker Krause
Browse files

Fix unit test without ZXing

parent 3153388a
......@@ -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());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment