1 // This file is part of Heimer. 2 // Copyright (C) 2018 Jussi Lind <jussi.lind@iki.fi> 3 // 4 // Heimer is free software: you can redistribute it and/or modify 5 // it under the terms of the GNU General Public License as published by 6 // the Free Software Foundation, either version 3 of the License, or 7 // (at your option) any later version. 8 // Heimer is distributed in the hope that it will be useful, 9 // but WITHOUT ANY WARRANTY; without even the implied warranty of 10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 // GNU General Public License for more details. 12 // 13 // You should have received a copy of the GNU General Public License 14 // along with Heimer. If not, see <http://www.gnu.org/licenses/>. 15 16 #ifndef SERIALIZER_TEST_HPP 17 #define SERIALIZER_TEST_HPP 18 19 #include <QTest> 20 21 class SerializerTest : public QObject 22 { 23 Q_OBJECT 24 25 public: 26 SerializerTest(); 27 28 private slots: 29 30 void testEmptyDesign(); 31 32 void testBackgroundColor(); 33 34 void testCornerRadius(); 35 36 void testEdgeColor(); 37 38 void testEdgeWidth(); 39 40 void testFontItalic(); 41 42 void testFontNonItalic(); 43 44 void testFontBold(); 45 46 void testFontNonBold(); 47 48 void testFontOverline(); 49 50 void testFontNonOverline(); 51 52 void testFontStrikeOut(); 53 54 void testFontNonStrikeOut(); 55 56 void testFontUnderline(); 57 58 void testFontNonUnderline(); 59 60 void testGridColor(); 61 62 void testLayoutOptimizer(); 63 64 void testNotUsedImages(); 65 66 void testNodeDeletion(); 67 68 void testSingleEdge(); 69 70 void testSingleNode(); 71 72 void testTextSize(); 73 74 void testUsedImages(); 75 }; 76 77 #endif // SERIALIZER_TEST_HPP 78