00001 #ifndef TestPosition_H 00002 #define TestPosition_H 00003 00004 #include <QtTest/QtTest> 00005 00006 class QPainter; 00007 class KoViewConverter; 00008 class KoShape; 00009 class KoShapeContainer; 00010 00011 class TestPosition : public QObject 00012 { 00013 Q_OBJECT 00014 private slots: 00015 void initTestCase(); 00016 void cleanupTestCase(); 00017 00018 // tests 00019 void testBasePosition(); 00020 void testAbsolutePosition(); 00021 void testSetAbsolutePosition(); 00022 00023 private: 00024 void resetValues(); 00025 void resetValues(KoShape *shape); 00026 00027 // vars 00028 KoShape *shape1, *shape2, *childShape1, *childShape2; 00029 KoShapeContainer *container, *container2; 00030 }; 00031 00032 #endif