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

Also make this test work without ZXing

Should fix all remaining issues on the CI.
parent 0a2aca98
Pipeline #55136 canceled with stages
......@@ -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>
......@@ -55,7 +57,12 @@ private Q_SLOTS:
QTest::newRow("text/plain") << s(SOURCE_DIR "/scriptenginedata/plain-text.txt") << s(SOURCE_DIR "/scriptenginedata/plain-text.txt.json");
QTest::newRow("pkpass") << s(SOURCE_DIR "/pkpassdata/swiss.pkpass") << s(SOURCE_DIR "/scriptenginedata/swiss.pkpass.json");
QTest::newRow("IATA BCBP PDF") << s(SOURCE_DIR "/extractordata/synthetic/iata-bcbp-demo.pdf") << s(SOURCE_DIR "/scriptenginedata/iata-bcbp-demo.pdf.json");
QTest::newRow("IATA BCBP PDF") << s(SOURCE_DIR "/extractordata/synthetic/iata-bcbp-demo.pdf")
#ifdef HAVE_ZXING
<< s(SOURCE_DIR "/scriptenginedata/iata-bcbp-demo.pdf.json");
#else
<< s(SOURCE_DIR "/scriptenginedata/iata-bcbp-demo.pdf-no-zxing.json");
#endif
QTest::newRow("ical") << s(SOURCE_DIR "/extractordata/ical/eventreservation.ics") << s(SOURCE_DIR "/scriptenginedata/eventreservation.ics.json");
QTest::newRow("uic9183") << s(SOURCE_DIR "/uic918-3/valid/Testw_VOW8XG6_A9E8DXL_0.bin") << s(SOURCE_DIR "/scriptenginedata/Testw_VOW8XG6_A9E8DXL_0.bin.json");
QTest::newRow("html") << s(SOURCE_DIR "/structureddata/google-flight-reservation-json-ld.html") << s(SOURCE_DIR "/scriptenginedata/google-flight-reservation-json-ld.html.json");
......@@ -63,6 +70,7 @@ private Q_SLOTS:
void testArguments()
{
QFETCH(QString, inputFile);
QFETCH(QString, refFile);
......
[
{
"content": {
"creationTime": "Mon Aug 19 20:23:28 2019 GMT+0200",
"modificationTime": "Invalid Date",
"objectName": "",
"pageCount": 1,
"pages": [
{
"images": [
{
"height": 139,
"width": 139
},
{
"height": 79,
"width": 79
}
],
"text": " Akademy Airways\n Boarding Pass\nFrom: Vienna International, Terminal 2\nTo: Milano Malpensa, Terminal 1\nFlight: AK 1996\nGate: A36\nBoarding Time: 15:20\nDeparture Time: 15:45\nArrival Time: 17:20\nPassenger: Dragon, Dr. Konqi\n"
}
],
"text": " Akademy Airways\n Boarding Pass\nFrom: Vienna International, Terminal 2\nTo: Milano Malpensa, Terminal 1\nFlight: AK 1996\nGate: A36\nBoarding Time: 15:20\nDeparture Time: 15:45\nArrival Time: 17:20\nPassenger: Dragon, Dr. Konqi\n"
}
},
{
"childNodes": [
{
"childNodes": [
],
"content": "QVariant(QImage, QImage(QSize(164, 164),format=QImage::Format_Grayscale8,depth=8,devicePixelRatio=1,bytesPerLine=164,sizeInBytes=26896))",
"contextDateTime": "Mon Aug 19 20:23:28 2019 GMT+0200",
"isNull": false,
"location": 0,
"mimeType": "internal/qimage",
"result": [
]
}
],
"content": {
"creationTime": "Mon Aug 19 20:23:28 2019 GMT+0200",
"modificationTime": "Invalid Date",
"objectName": "",
"pageCount": 1,
"pages": [
{
"images": [
{
"height": 139,
"width": 139
},
{
"height": 79,
"width": 79
}
],
"text": " Akademy Airways\n Boarding Pass\nFrom: Vienna International, Terminal 2\nTo: Milano Malpensa, Terminal 1\nFlight: AK 1996\nGate: A36\nBoarding Time: 15:20\nDeparture Time: 15:45\nArrival Time: 17:20\nPassenger: Dragon, Dr. Konqi\n"
}
],
"text": " Akademy Airways\n Boarding Pass\nFrom: Vienna International, Terminal 2\nTo: Milano Malpensa, Terminal 1\nFlight: AK 1996\nGate: A36\nBoarding Time: 15:20\nDeparture Time: 15:45\nArrival Time: 17:20\nPassenger: Dragon, Dr. Konqi\n"
},
"contextDateTime": "Mon Aug 19 20:23:28 2019 GMT+0200",
"isNull": false,
"mimeType": "application/pdf",
"result": [
]
},
{
"data": [
],
"objectName": "",
"pdfPageNumber": 0,
"senderDate": "Mon Aug 19 20:23:28 2019 GMT+0200"
}
]
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