File indexing completed on 2024-05-26 04:09:58
0001 /* 0002 SPDX-FileCopyrightText: 2012 Stefan Majewsky <majewsky@gmx.net> 0003 0004 SPDX-License-Identifier: LGPL-2.0-only 0005 */ 0006 0007 #ifndef KGAMESVGDOCUMENTTEST_H 0008 #define KGAMESVGDOCUMENTTEST_H 0009 0010 // own 0011 #define USE_UNSTABLE_LIBKDEGAMESPRIVATE_API 0012 #include "kgamesvgdocument.h" 0013 // Qt 0014 #include <QObject> 0015 0016 class tst_KGameSvgDocument : public QObject 0017 { 0018 Q_OBJECT 0019 0020 KGameSvgDocument m_svgDom; 0021 0022 // Declare test functions as private slots, or they won't get executed 0023 private Q_SLOTS: 0024 0025 /// @brief This function is called first, so you can do init stuff here. 0026 void initTestCase(); 0027 0028 /// @brief Test various style manipulations to make sure they are reversible 0029 void style(); 0030 0031 /// @brief We scale up, then back, and verify scaling is reversible 0032 void scale(); 0033 0034 /// @brief Test the transform attribute QRegExp 0035 void transformRegex(); 0036 0037 /// @brief We test that transforms can be read and written to DOM 0038 void transform(); 0039 0040 /// @brief This function is called last, so you can do final stuff here. 0041 void cleanupTestCase(); 0042 }; 0043 0044 #endif // KGAMESVGDOCUMENTTEST_H