Reinstate disabled part of qsortfilterproxymodel test
authorJason McDonald <jason.mcdonald@nokia.com>
Tue, 1 Nov 2011 06:45:36 +0000 (16:45 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 2 Nov 2011 04:44:34 +0000 (05:44 +0100)
This test function has been disabled since before the tests were
imported into the Qt repository in 2006, but seems to pass today, at
least on Linux.

Change-Id: I8ff90a11a0fbb260d66b20ae735b5f21c450a5af
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/widgets/itemviews/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp

index def1794..8e62841 100644 (file)
@@ -103,7 +103,7 @@ private slots:
     void filterColumns();
 
     void filterTable();
-//    void filterCurrent();
+    void filterCurrent();
 
     void changeSourceLayout();
     void removeSourceRows_data();
@@ -1492,7 +1492,6 @@ void tst_QSortFilterProxyModel::removeAfterSelect()
     QVERIFY(view.selectionModel()->selectedIndexes().size() > 0); // Should still have a selection
 }
 
-#if 0 // this test is disabled for now
 void tst_QSortFilterProxyModel::filterCurrent()
 {
     QStandardItemModel model(2, 1);
@@ -1511,7 +1510,6 @@ void tst_QSortFilterProxyModel::filterCurrent()
     proxy.setFilterRegExp(QRegExp("^B"));
     QCOMPARE(spy.count(), 2);
 }
-#endif
 
 void tst_QSortFilterProxyModel::changeSourceLayout()
 {