mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-13 03:40:31 +02:00
working setup for unit tests
This commit is contained in:
@@ -20,7 +20,7 @@ public:
|
||||
private slots:
|
||||
void initTestCase();
|
||||
void cleanupTestCase();
|
||||
void test_case1();
|
||||
//void test_case1();
|
||||
|
||||
//test painting area
|
||||
void test_addLayer();
|
||||
@@ -121,12 +121,81 @@ void UnitTest::cleanupTestCase()
|
||||
delete app;
|
||||
}
|
||||
|
||||
void UnitTest::test_case1()
|
||||
{
|
||||
QBENCHMARK {
|
||||
QVERIFY(1 == 1);
|
||||
}
|
||||
}
|
||||
//void UnitTest::test_case1()
|
||||
//{
|
||||
// QBENCHMARK {
|
||||
// QVERIFY(1 == 1);
|
||||
// }
|
||||
//}
|
||||
|
||||
//test painting area
|
||||
void UnitTest::test_addLayer(){}
|
||||
void UnitTest::test_deleteLayer(){}
|
||||
void UnitTest::test_setActive(){}
|
||||
void UnitTest::test_setAlpha(){}
|
||||
void UnitTest::test_floodFill(){}
|
||||
void UnitTest::test_moveActive(){}
|
||||
void UnitTest::test_setPolygon(){}
|
||||
void UnitTest::test_setLayerUp(){}
|
||||
void UnitTest::test_setLayerDown(){}
|
||||
|
||||
void UnitTest::test_createTools(){}
|
||||
|
||||
//test Raster-Image operations
|
||||
void UnitTest::test_RasterImage_drawPixel(){}
|
||||
void UnitTest::test_RasterImage_drawLine(){}
|
||||
void UnitTest::test_RasterImage_drawPoint(){}
|
||||
void UnitTest::test_RasterImage_getDisplayable(){}
|
||||
void UnitTest::test_RasterImage_setPolygon(){}
|
||||
void UnitTest::test_RasterImage_loadImage(){}
|
||||
void UnitTest::test_RasterImage_getPixelColor(){}
|
||||
void UnitTest::test_RasterImage_getImageData(){}
|
||||
void UnitTest::test_RasterImage_setImageData(){}
|
||||
|
||||
//test Shaped-Image operations
|
||||
void UnitTest::test_ShapedImage_drawPixel(){}
|
||||
void UnitTest::test_ShapedImage_drawLine(){}
|
||||
void UnitTest::test_ShapedImage_drawPoint(){}
|
||||
void UnitTest::test_ShapedImage_getDisplayable(){}
|
||||
void UnitTest::test_ShapedImage_setPolygon(){}
|
||||
void UnitTest::test_ShapedImage_loadImage(){}
|
||||
void UnitTest::test_ShapedImage_getPixelColor(){}
|
||||
void UnitTest::test_ShapedImage_getImageData(){}
|
||||
void UnitTest::test_ShapedImage_setImageData(){}
|
||||
|
||||
//test painting-area tools
|
||||
void UnitTest::test_createTool_Circle(){}
|
||||
void UnitTest::test_createTool_FloodFill(){}
|
||||
void UnitTest::test_createTool_Line(){}
|
||||
void UnitTest::test_createTool_Pen(){}
|
||||
void UnitTest::test_createTool_Plain(){}
|
||||
void UnitTest::test_createTool_Polygon(){}
|
||||
void UnitTest::test_createTool_Rectangle(){}
|
||||
|
||||
//test tools
|
||||
void UnitTest::test_Circle_fullDraw(){}
|
||||
void UnitTest::test_Circle_interruptedDraw(){}
|
||||
|
||||
void UnitTest::test_FloodFill_fullDraw(){}
|
||||
void UnitTest::test_FloodFill_interruptedDraw(){}
|
||||
|
||||
void UnitTest::test_Line_fullDraw(){}
|
||||
void UnitTest::test_Line_interruptedDraw(){}
|
||||
|
||||
void UnitTest::test_Pen_fullDraw(){}
|
||||
void UnitTest::test_Pen_interruptedDraw(){}
|
||||
|
||||
void UnitTest::test_Plain_fullDraw(){}
|
||||
void UnitTest::test_Plain_interruptedDraw(){}
|
||||
|
||||
void UnitTest::test_Polygon_fullDraw(){}
|
||||
void UnitTest::test_Polygon_interruptedDraw(){}
|
||||
|
||||
void UnitTest::test_Rectangle_fullDraw(){}
|
||||
void UnitTest::test_Rectangle_interruptedDraw(){}
|
||||
|
||||
//test Triangulation
|
||||
void UnitTest::test_Triangulation_Coverage(){}
|
||||
|
||||
QTEST_APPLESS_MAIN(UnitTest)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user