summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarius Bugge Monsen <mmonsen@trolltech.com>2009-05-10 21:26:10 +0200
committerMarius Bugge Monsen <mmonsen@trolltech.com>2009-05-10 21:26:10 +0200
commit90eb9e9270c0748f69d1cccc4bde36cd987436a9 (patch)
tree0b966305c9fe59174bd7ab8106fd0bb50185dead /tests
parenta0ac2012add3ccd046f8db4ff1af2933515e5498 (diff)
Add some empty test functions to the QtTreeSelectionManager test to indicate what we need to test.
Add some comments to the QtTableSelectionManager test. Do some cosmetic changes to the QtTreeDefaultModel test.
Diffstat (limited to 'tests')
-rw-r--r--tests/qtableselectionmanager/tst_qtableselectionmanager.cpp4
-rw-r--r--tests/qtreedefaultmodel/tst_qtreedefaultmodel.cpp1
-rw-r--r--tests/qtreeselectionmanager/tst_qtreeselectionmanager.cpp44
3 files changed, 39 insertions, 10 deletions
diff --git a/tests/qtableselectionmanager/tst_qtableselectionmanager.cpp b/tests/qtableselectionmanager/tst_qtableselectionmanager.cpp
index 4d5b880..07e0fe1 100644
--- a/tests/qtableselectionmanager/tst_qtableselectionmanager.cpp
+++ b/tests/qtableselectionmanager/tst_qtableselectionmanager.cpp
@@ -115,6 +115,10 @@ void tst_QtTableSelectionManager::currentCell()
{
}
+/*
+ Note that current cell and anchor cell should behave the same.
+ So if you modify one test, make sure you also modify the other.
+ */
void tst_QtTableSelectionManager::anchorCell_data()
{
}
diff --git a/tests/qtreedefaultmodel/tst_qtreedefaultmodel.cpp b/tests/qtreedefaultmodel/tst_qtreedefaultmodel.cpp
index 8abca0f..a1bd857 100644
--- a/tests/qtreedefaultmodel/tst_qtreedefaultmodel.cpp
+++ b/tests/qtreedefaultmodel/tst_qtreedefaultmodel.cpp
@@ -60,7 +60,6 @@ Q_DECLARE_METATYPE(QList<int>)
Q_DECLARE_METATYPE(QList<bool>)
Q_DECLARE_METATYPE(QtTreeModelBase::iterator_base)
-
tst_QtTreeDefaultModel::tst_QtTreeDefaultModel()
{
qRegisterMetaType<QtTreeModelBase::iterator_base>("QtTreeModelBase::iterator_base");
diff --git a/tests/qtreeselectionmanager/tst_qtreeselectionmanager.cpp b/tests/qtreeselectionmanager/tst_qtreeselectionmanager.cpp
index a6873db..9422265 100644
--- a/tests/qtreeselectionmanager/tst_qtreeselectionmanager.cpp
+++ b/tests/qtreeselectionmanager/tst_qtreeselectionmanager.cpp
@@ -22,7 +22,8 @@
****************************************************************************/
#include <QtTest/QtTest>
-#include "qtreeselectionmanager.h"
+#include <qtreeselectionmanager.h>
+#include <qtreedefaultmodel.h>
class tst_QtTreeSelectionManager : public QObject
{
@@ -40,13 +41,23 @@ public slots:
private slots:
void getSetCheck();
- void setSelection_data();
- void setSelection();
- void toggleSelection_data();
- void toggleSelection();
+ void currentItem_data();
+ void currentItem();
+ void anchorItem_data();
+ void anchorItem();
+ void selections_data();
+ void selections();
+ void anchoredSelections_data();
+ void anchoredSelections();
+
+private:
+ QtTreeSelectionManager *manager;
+ QtTreeDefaultModel *model;
};
Q_DECLARE_METATYPE(QList<int>)
+Q_DECLARE_METATYPE(QList<bool>)
+Q_DECLARE_METATYPE(QtTreeModelBase::iterator_base)
tst_QtTreeSelectionManager::tst_QtTreeSelectionManager()
{
@@ -76,19 +87,34 @@ void tst_QtTreeSelectionManager::getSetCheck()
{
}
-void tst_QtTreeSelectionManager::setSelection_data()
+void tst_QtTreeSelectionManager::currentItem_data()
{
}
-void tst_QtTreeSelectionManager::setSelection()
+void tst_QtTreeSelectionManager::currentItem()
+{
+}
+void tst_QtTreeSelectionManager::anchorItem_data()
+{
+}
+
+void tst_QtTreeSelectionManager::anchorItem()
+{
+}
+
+void tst_QtTreeSelectionManager::selections_data()
+{
+}
+
+void tst_QtTreeSelectionManager::selections()
{
}
-void tst_QtTreeSelectionManager::toggleSelection_data()
+void tst_QtTreeSelectionManager::anchoredSelections_data()
{
}
-void tst_QtTreeSelectionManager::toggleSelection()
+void tst_QtTreeSelectionManager::anchoredSelections()
{
}