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
KPkPass
Commits
0c13720c
Commit
0c13720c
authored
Mar 09, 2018
by
Volker Krause
Browse files
Add more tests for pass updates
parent
629925eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
autotests/pkpasstest.cpp
View file @
0c13720c
...
@@ -38,6 +38,8 @@ private slots:
...
@@ -38,6 +38,8 @@ private slots:
QCOMPARE
(
pass
->
type
(),
KPkPass
::
Pass
::
BoardingPass
);
QCOMPARE
(
pass
->
type
(),
KPkPass
::
Pass
::
BoardingPass
);
QCOMPARE
(
pass
->
logoText
(),
QLatin1String
(
"Boarding Pass"
));
QCOMPARE
(
pass
->
logoText
(),
QLatin1String
(
"Boarding Pass"
));
QCOMPARE
(
pass
->
backgroundColor
(),
QColor
(
61
,
174
,
233
));
QCOMPARE
(
pass
->
backgroundColor
(),
QColor
(
61
,
174
,
233
));
QCOMPARE
(
pass
->
relevantDate
(),
QDateTime
(
QDate
(
2017
,
9
,
17
),
QTime
(
0
,
4
,
0
),
Qt
::
UTC
));
QCOMPARE
(
pass
->
fields
().
size
(),
12
);
auto
headers
=
pass
->
headerFields
();
auto
headers
=
pass
->
headerFields
();
QCOMPARE
(
headers
.
size
(),
2
);
QCOMPARE
(
headers
.
size
(),
2
);
...
...
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