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 8af7c87f authored by Laurent Montel's avatar Laurent Montel 😁

Add autotest

parent bb3f2ccc
......@@ -62,4 +62,23 @@ void CategoryTypeComboBoxTest::shouldSetType()
QCOMPARE(w.type(), input);
}
void CategoryTypeComboBoxTest::shouldVerifyItNotDefault()
{
CategoryTypeComboBox w(true);
w.setType(LoggingCategory::All);
QVERIFY(w.loggingCategoryIsNotDefault());
w.setType(LoggingCategory::Info);
QVERIFY(!w.loggingCategoryIsNotDefault());
w.setType(LoggingCategory::Warning);
QVERIFY(w.loggingCategoryIsNotDefault());
w.setType(LoggingCategory::Debug);
QVERIFY(w.loggingCategoryIsNotDefault());
w.setType(LoggingCategory::Critical);
QVERIFY(w.loggingCategoryIsNotDefault());
}
QTEST_MAIN(CategoryTypeComboBoxTest)
......@@ -33,6 +33,8 @@ private Q_SLOTS:
void shouldHaveDefaultValue();
void shouldSetType_data();
void shouldSetType();
void shouldVerifyItNotDefault();
};
#endif // CATEGORYTYPECOMBOBOXTEST_H
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