1 /*
2  * Copyright (C) 2011 Elvis Stansvik <elvstone@gmail.com>
3  *
4  * For general Scribus (>=1.3.2) copyright and licensing information please refer
5  * to the COPYING file provided with the program. Following this notice may exist
6  * a copyright and/or license notice that predates the release of Scribus 1.3.2
7  * for which a new license (GPL+exception) is in place.
8  */
9 #ifndef CELLAREATESTS_H
10 #define CELLAREATESTS_H
11 
12 #include <QtTest/QtTest>
13 
14 /**
15  * Unit tests for CellArea.
16  */
17 class CellAreaTests : public QObject
18 {
19 	Q_OBJECT
20 public:
CellAreaTests()21 	CellAreaTests() {}
22 
23 private slots:
24 	void testConstructionAndSetters();
25 	void testComparison();
26 	void testContainsPoint();
27 	void testContainsPoint_data();
28 	void testContainsArea();
29 	void testContainsArea_data();
30 	void testIntersects();
31 	void testIntersects_data();
32 	void testTranslated();
33 	void testTranslated_data();
34 	void testTranslate();
35 	void testTranslate_data();
36 	void testAdjusted();
37 	void testAdjusted_data();
38 	void testAdjust();
39 	void testAdjust_data();
40 	void testUnited();
41 	void testUnited_data();
42 	void testAdjustedForRowInsertion();
43 	void testAdjustedForRowInsertion_data();
44 	void testAdjustedForRowRemoval();
45 	void testAdjustedForRowRemoval_data();
46 	void testAdjustedForColumnInsertion();
47 	void testAdjustedForColumnInsertion_data();
48 	void testAdjustedForColumnRemoval();
49 	void testAdjustedForColumnRemoval_data();
50  };
51 
52 #endif // CELLAREATESTS_H
53