Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFonic <fonic.maxxim@live.com>2018-01-15 12:24:28 +0300
committerFonic <fonic.maxxim@live.com>2018-01-21 17:17:05 +0300
commit9ff648177c23402f6a48433c28c4867479c8aef9 (patch)
tree9956404cc82f518387fe6c643377cb55de5198b4 /tests/TestEntryModel.cpp
parent161d0ea50fdd544fb5a64fd3b19297615d5a53f2 (diff)
Update entry model test to account for additional column 'Paperclip'
Update comparison values of modelProxy->columnCount() to account for additional column 'Paperclip'
Diffstat (limited to 'tests/TestEntryModel.cpp')
-rw-r--r--tests/TestEntryModel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/TestEntryModel.cpp b/tests/TestEntryModel.cpp
index 49ae3b0d1..ab4ecf754 100644
--- a/tests/TestEntryModel.cpp
+++ b/tests/TestEntryModel.cpp
@@ -292,11 +292,11 @@ void TestEntryModel::testProxyModel()
* @author Fonic <https://github.com/fonic>
* Update comparison value of modelProxy->columnCount() to account for
* additional columns 'Password', 'Notes', 'Expires', 'Created', 'Modified',
- * 'Accessed' and 'Attachments'
+ * 'Accessed', 'Paperclip' and 'Attachments'
*/
QSignalSpy spyColumnRemove(modelProxy, SIGNAL(columnsAboutToBeRemoved(QModelIndex,int,int)));
modelProxy->hideColumn(0, true);
- QCOMPARE(modelProxy->columnCount(), 10);
+ QCOMPARE(modelProxy->columnCount(), 11);
QVERIFY(spyColumnRemove.size() >= 1);
int oldSpyColumnRemoveSize = spyColumnRemove.size();
@@ -314,11 +314,11 @@ void TestEntryModel::testProxyModel()
* @author Fonic <https://github.com/fonic>
* Update comparison value of modelProxy->columnCount() to account for
* additional columns 'Password', 'Notes', 'Expires', 'Created', 'Modified',
- * 'Accessed' and 'Attachments'
+ * 'Accessed', 'Paperclip' and 'Attachments'
*/
QSignalSpy spyColumnInsert(modelProxy, SIGNAL(columnsAboutToBeInserted(QModelIndex,int,int)));
modelProxy->hideColumn(0, false);
- QCOMPARE(modelProxy->columnCount(), 11);
+ QCOMPARE(modelProxy->columnCount(), 12);
QVERIFY(spyColumnInsert.size() >= 1);
int oldSpyColumnInsertSize = spyColumnInsert.size();