Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit d4a0c3de authored by Laurent Montel's avatar Laurent Montel 😁

Add more autotest

parent 52598d7c
......@@ -38,6 +38,26 @@ void GravatarResolvUrlJobTest::shouldHaveDefaultValue()
QCOMPARE(job.hasGravatar(), false);
QCOMPARE(job.pixmap().isNull(), true);
QCOMPARE(job.useDefaultPixmap(), false);
QCOMPARE(job.useCache(), false);
}
void GravatarResolvUrlJobTest::shouldChangeValue()
{
PimCommon::GravatarResolvUrlJob job;
bool useCache = true;
job.setUseCache(useCache);
QCOMPARE(job.useCache(), useCache);
useCache = false;
job.setUseCache(useCache);
QCOMPARE(job.useCache(), useCache);
bool useDefaultPixmap = true;
job.setUseDefaultPixmap(useDefaultPixmap);
QCOMPARE(job.useDefaultPixmap(), useDefaultPixmap );
useDefaultPixmap = false;
job.setUseDefaultPixmap(useDefaultPixmap);
QCOMPARE(job.useDefaultPixmap(), useDefaultPixmap );
}
void GravatarResolvUrlJobTest::shouldChangeSize()
......
......@@ -29,6 +29,7 @@ public:
private Q_SLOTS:
void shouldHaveDefaultValue();
void shouldChangeValue();
void shouldNotStart();
void shouldGenerateGravatarUrl_data();
......
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