test_theme.h 816 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef TEST_THEME_H
  2. #define TEST_THEME_H
  3. #include <QtTest>
  4. namespace vnotex
  5. {
  6. class IVersionControllerFactory;
  7. class INotebookConfigMgrFactory;
  8. class INotebookBackendFactory;
  9. class INotebookFactory;
  10. }
  11. namespace tests
  12. {
  13. class TestTheme : public QObject
  14. {
  15. Q_OBJECT
  16. public:
  17. explicit TestTheme(QObject *p_parent = nullptr);
  18. private slots:
  19. // Define test cases here per slot.
  20. void testTranslatePaletteObject();
  21. void testTranslateStyleByPalette();
  22. void testTranslateUrlToAbsolute();
  23. void testTranslateScaledSize();
  24. private:
  25. void checkKeyValue(const QJsonObject &p_obj,
  26. const QString &p_key,
  27. const QString &p_val);
  28. };
  29. } // ns tests
  30. #endif // TEST_THEME_H