File indexing completed on 2024-05-12 04:20:15
0001 /** 0002 * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved. 0003 * 0004 * This file is part of the KD Chart library. 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #include "mainwindow.h" 0010 0011 #include <QtTest/QtTest> 0012 0013 class TestDrawIntoPainter: public QObject { 0014 Q_OBJECT 0015 private Q_SLOTS: 0016 0017 void initTestCase() 0018 { 0019 qputenv("QTEST_FUNCTION_TIMEOUT", QByteArray("600000")); 0020 } 0021 0022 void testOriginal() 0023 { 0024 mainWindow.updateData(QStringLiteral(":/original")); 0025 } 0026 0027 void testTest() 0028 { 0029 // The test in :/test is so large it times out on CI 0030 // so we run the half sized :/test4000 for now 0031 #if 0 0032 mainWindow.updateData(QStringLiteral(":/test")); 0033 #else 0034 mainWindow.updateData(QStringLiteral(":/test_small")); 0035 #endif 0036 } 0037 0038 private: 0039 MainWindow mainWindow; 0040 0041 }; 0042 0043 QTEST_MAIN(TestDrawIntoPainter) 0044 0045 #include "main.moc"