22 void cleanupTestCase();
27 void test_deleteLayer();
28 void test_setActive();
30 void test_floodFill();
31 void test_moveActive();
32 void test_setPolygon();
33 void test_setLayerUp();
34 void test_setLayerDown();
36 void test_createTools();
39 void test_RasterImage_drawPixel();
40 void test_RasterImage_drawLine();
41 void test_RasterImage_drawPoint();
42 void test_RasterImage_getDisplayable();
43 void test_RasterImage_setPolygon();
44 void test_RasterImage_loadImage();
45 void test_RasterImage_getPixelColor();
46 void test_RasterImage_getImageData();
47 void test_RasterImage_setImageData();
50 void test_ShapedImage_drawPixel();
51 void test_ShapedImage_drawLine();
52 void test_ShapedImage_drawPoint();
53 void test_ShapedImage_getDisplayable();
54 void test_ShapedImage_setPolygon();
55 void test_ShapedImage_loadImage();
56 void test_ShapedImage_getPixelColor();
57 void test_ShapedImage_getImageData();
58 void test_ShapedImage_setImageData();
61 void test_createTool_Circle();
62 void test_createTool_FloodFill();
63 void test_createTool_Line();
64 void test_createTool_Pen();
65 void test_createTool_Plain();
66 void test_createTool_Polygon();
67 void test_createTool_Rectangle();
70 void test_Circle_fullDraw();
71 void test_Circle_interruptedDraw();
73 void test_FloodFill_fullDraw();
74 void test_FloodFill_interruptedDraw();
76 void test_Line_fullDraw();
77 void test_Line_interruptedDraw();
79 void test_Pen_fullDraw();
80 void test_Pen_interruptedDraw();
82 void test_Plain_fullDraw();
83 void test_Plain_interruptedDraw();
85 void test_Polygon_fullDraw();
86 void test_Polygon_interruptedDraw();
88 void test_Rectangle_fullDraw();
89 void test_Rectangle_interruptedDraw();
92 void test_Triangulation_Coverage();
97 char arg0[] =
"programName";
100 char*argv[] = {arg0, arg1, arg2,
nullptr};
101 int argc =
sizeof(argv) /
sizeof(
char*) - 1;
103 app =
new QApplication(argc,argv);
105 area = gui->paintingArea;
113 void UnitTest::initTestCase()
118 void UnitTest::cleanupTestCase()
132 void UnitTest::test_addLayer(){
134 void UnitTest::test_deleteLayer(){
136 void UnitTest::test_setActive(){
138 void UnitTest::test_setAlpha(){
140 void UnitTest::test_floodFill(){
142 void UnitTest::test_moveActive(){
144 void UnitTest::test_setPolygon(){
146 void UnitTest::test_setLayerUp(){
148 void UnitTest::test_setLayerDown(){
151 void UnitTest::test_createTools(){
155 void UnitTest::test_RasterImage_drawPixel(){
157 void UnitTest::test_RasterImage_drawLine(){
159 void UnitTest::test_RasterImage_drawPoint(){
161 void UnitTest::test_RasterImage_getDisplayable(){
163 void UnitTest::test_RasterImage_setPolygon(){
165 void UnitTest::test_RasterImage_loadImage(){
167 void UnitTest::test_RasterImage_getPixelColor(){
169 void UnitTest::test_RasterImage_getImageData(){
171 void UnitTest::test_RasterImage_setImageData(){
175 void UnitTest::test_ShapedImage_drawPixel(){
177 void UnitTest::test_ShapedImage_drawLine(){
179 void UnitTest::test_ShapedImage_drawPoint(){
181 void UnitTest::test_ShapedImage_getDisplayable(){
183 void UnitTest::test_ShapedImage_setPolygon(){
185 void UnitTest::test_ShapedImage_loadImage(){
187 void UnitTest::test_ShapedImage_getPixelColor(){
189 void UnitTest::test_ShapedImage_getImageData(){
191 void UnitTest::test_ShapedImage_setImageData(){
195 void UnitTest::test_createTool_Circle(){
197 void UnitTest::test_createTool_FloodFill(){
199 void UnitTest::test_createTool_Line(){
201 void UnitTest::test_createTool_Pen(){
203 void UnitTest::test_createTool_Plain(){
205 void UnitTest::test_createTool_Polygon(){
207 void UnitTest::test_createTool_Rectangle(){
211 void UnitTest::test_Circle_fullDraw(){
213 void UnitTest::test_Circle_interruptedDraw(){
216 void UnitTest::test_FloodFill_fullDraw(){
218 void UnitTest::test_FloodFill_interruptedDraw(){
221 void UnitTest::test_Line_fullDraw(){
223 void UnitTest::test_Line_interruptedDraw(){
226 void UnitTest::test_Pen_fullDraw(){
228 void UnitTest::test_Pen_interruptedDraw(){
231 void UnitTest::test_Plain_fullDraw(){
233 void UnitTest::test_Plain_interruptedDraw(){
236 void UnitTest::test_Polygon_fullDraw(){
238 void UnitTest::test_Polygon_interruptedDraw(){
241 void UnitTest::test_Rectangle_fullDraw(){
243 void UnitTest::test_Rectangle_interruptedDraw(){
247 void UnitTest::test_Triangulation_Coverage(){
252 #include "tst_unittest.moc"