File indexing completed on 2024-04-21 03:48:05

0001 /*
0002     File                 : CartesianPlotTest.h
0003     Project              : LabPlot
0004     Description          : Tests for cartesian plots
0005     --------------------------------------------------------------------
0006     SPDX-FileCopyrightText: 2022 Stefan Gerlach <stefan.gerlach@uni.kn>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 */
0010 #ifndef CARTESIANPLOTTEST_H
0011 #define CARTESIANPLOTTEST_H
0012 
0013 #include <QtTest>
0014 
0015 class CartesianPlotTest : public QObject {
0016     Q_OBJECT
0017 
0018 private Q_SLOTS:
0019     void initTestCase();
0020 
0021     // change data in spreadsheet source
0022     void changeData1();
0023     void changeData2();
0024     void changeData3();
0025     void changeData4();
0026     void changeData5();
0027     void changeData6();
0028 
0029     // check deleting curve
0030     void deleteCurveAutoscale();
0031     void deleteCurveNoAutoscale();
0032 
0033     void invisibleCurveAutoscale();
0034     void invisibleCurveNoAutoscale();
0035 
0036     void equationCurveEquationChangedAutoScale();
0037     void equationCurveEquationChangedNoAutoScale();
0038 
0039     void undoInfoElement();
0040 
0041     void axisFormat();
0042     void shiftLeftAutoScale();
0043     void shiftRightAutoScale();
0044     void shiftUpAutoScale();
0045     void shiftDownAutoScale();
0046 
0047     void rangeFormatYDataChanged();
0048     void rangeFormatXDataChanged();
0049     void rangeFormatNonDefaultRange();
0050 
0051     void invalidcSystem();
0052 
0053     void autoScaleFitCurveCalculation();
0054 
0055     void wheelEventCenterAxes();
0056     void wheelEventNotCenter();
0057 
0058     void wheelEventOutsideTopLeft();
0059     void wheelEventOutsideBottomRight();
0060 
0061     void spreadsheetRemoveRows();
0062     void spreadsheetInsertRows();
0063 };
0064 #endif