2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
#include <QtTest>
|
2015-08-12 13:11:16 +03:00
|
|
|
#include <QtCore/qnamespace.h>
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
class KSignalPlotter;
|
|
|
|
class TestSignalPlotter : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
private slots:
|
|
|
|
void init();
|
|
|
|
void cleanup();
|
|
|
|
|
|
|
|
void testAddRemoveBeams();
|
|
|
|
void testAddRemoveBeamsWithData();
|
|
|
|
void testReorderBeams();
|
|
|
|
void testReorderBeamsWithData();
|
|
|
|
void testMaximumRange();
|
|
|
|
void testNegativeMinimumRange();
|
|
|
|
void testSetBeamColor();
|
|
|
|
void testSetUnit();
|
|
|
|
void testGettersSetters();
|
|
|
|
void testAddingData();
|
|
|
|
void testNonZeroRange();
|
|
|
|
void testNonZeroRange2();
|
|
|
|
void testNiceRangeCalculation_data();
|
|
|
|
void testNiceRangeCalculation();
|
|
|
|
private:
|
|
|
|
KSignalPlotter *s;
|
|
|
|
};
|