00001 #ifndef TEST_GRID_LINE_LIMITER_H
00002 #define TEST_GRID_LINE_LIMITER_H
00003
00004 #include <QObject>
00005
00007 class TestGridLineLimiter : public QObject
00008 {
00009 Q_OBJECT
00010 public:
00012 explicit TestGridLineLimiter(QObject *parent = 0);
00013
00014 signals:
00015
00016 private slots:
00017 void cleanupTestCase ();
00018 void initTestCase ();
00019
00020 void testBadStepLinearX ();
00021 void testBadStepLinearY ();
00022 void testBadStepLogX ();
00023 void testBadStepLogY ();
00024 void testTransitionLinearToLogX ();
00025 void testTransitionLinearToLogY ();
00026
00027 private:
00028 bool testLinearX (double start,
00029 double step,
00030 double stop,
00031 double x1, double y1,
00032 double x2, double y2,
00033 double x3, double y3);
00034 bool testLinearY (double start,
00035 double step,
00036 double stop,
00037 double x1, double y1,
00038 double x2, double y2,
00039 double x3, double y3);
00040 bool testLogX (double start,
00041 double step,
00042 double stop,
00043 double x1, double y1,
00044 double x2, double y2,
00045 double x3, double y3);
00046 bool testLogY (double start,
00047 double step,
00048 double stop,
00049 double x1, double y1,
00050 double x2, double y2,
00051 double x3, double y3);
00052 };
00053
00054 #endif // TEST_GRID_LINE_LIMITER_H