equal
deleted
inserted
replaced
241 createContact_5(); |
241 createContact_5(); |
242 createContact_6(); |
242 createContact_6(); |
243 createContact_7(); |
243 createContact_7(); |
244 createContact_8(); |
244 createContact_8(); |
245 createContact_9(); |
245 createContact_9(); |
246 // Empty contact |
|
247 //QContact empty; |
|
248 //mCntMng->saveContact(&empty); |
|
249 |
246 |
250 QContactManager::Error err; |
247 QContactManager::Error err; |
251 QList<QContactLocalId> cnt_ids = m_engine->contactIds(QContactFilter(),QList<QContactSortOrder>(), &err); |
248 QList<QContactLocalId> cnt_ids = m_engine->contactIds(QContactFilter(),QList<QContactSortOrder>(), &err); |
252 int j = cnt_ids.count(); |
249 int j = cnt_ids.count(); |
253 // 7contacts created in code, so check if all 5 were created |
|
254 QVERIFY(9 == j); |
250 QVERIFY(9 == j); |
255 |
|
256 } |
251 } |
257 |
252 |
258 |
253 |
259 void TestFiltering::createContact_1() |
254 void TestFiltering::createContact_1() |
260 { |
255 { |