File indexing completed on 2024-05-12 05:13:32
0001 /* 0002 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QObject> 0010 0011 class GrantleeThemeTest : public QObject 0012 { 0013 Q_OBJECT 0014 public: 0015 explicit GrantleeThemeTest(QObject *parent = nullptr); 0016 ~GrantleeThemeTest() override; 0017 private Q_SLOTS: 0018 void shouldHaveDefaultValue(); 0019 void shouldInvalidWhenPathIsNotValid(); 0020 void shouldLoadTheme_data(); 0021 void shouldLoadTheme(); 0022 0023 void testRenderTemplate_data(); 0024 void testRenderTemplate(); 0025 0026 private: 0027 bool validateHtml(const QString &path, const QString &name, const QString &html); 0028 bool compareHtml(const QString &generatedTheme, const QString &path, const QString &name); 0029 };