summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Krause <[email protected]>2017-09-17 13:49:57 +0200
committerVolker Krause <[email protected]>2017-09-17 13:49:57 +0200
commit379da658218554e3bf32b5bfccce87b0b8804144 (patch)
tree35e454f42cd0c57da22c0fc35cc5791d183438f4
parent62b60ba5938f8789f0d9cb36e5c87d1fcba7c84e (diff)
Fix unit test, this signal has no arguments
-rw-r--r--plugins/templateparser/autotests/templateparseremailaddressrequesterakonaditest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/templateparser/autotests/templateparseremailaddressrequesterakonaditest.cpp b/plugins/templateparser/autotests/templateparseremailaddressrequesterakonaditest.cpp
index cc78d64..1753739 100644
--- a/plugins/templateparser/autotests/templateparseremailaddressrequesterakonaditest.cpp
+++ b/plugins/templateparser/autotests/templateparseremailaddressrequesterakonaditest.cpp
@@ -73,11 +73,11 @@ void TemplateParserEmailAddressRequesterAkonadiTest::shouldEmitSignal()
TemplateParserEmailAddressRequesterAkonadi w;
QSignalSpy spy(&w, &TemplateParser::TemplateParserEmailAddressRequesterBase::textChanged);
w.setText(QStringLiteral("foo"));
- QCOMPARE(spy.at(0).count(), 1);
+ QCOMPARE(spy.size(), 1);
w.clear();
- QCOMPARE(spy.at(1).count(), 1);
+ QCOMPARE(spy.size(), 2);
w.setText(QStringLiteral("foo"));
- QCOMPARE(spy.at(2).count(), 1);
+ QCOMPARE(spy.size(), 3);
}
QTEST_MAIN(TemplateParserEmailAddressRequesterAkonadiTest)