diff options
author | varjolintu <sami.vanttinen@protonmail.com> | 2019-08-15 12:35:11 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2019-10-17 05:20:57 +0300 |
commit | f726d7501ff7e8a66ae974719042f23010716595 (patch) | |
tree | 9eb923dde877609866bc6c2684ace6e44f090289 /tests/TestEntry.cpp | |
parent | e50261a99c0ed6911aa16331dde730223fe4a2e1 (diff) |
Add support for multiple URLs in an entry
* Fixes #398
The new Browser Integration entry settings page has a list view with any additional URL's. These URL's are added to the entry attributes with KP2A_URL_<counter>, which means those are directly compatible with Keepass2Android.
Diffstat (limited to 'tests/TestEntry.cpp')
-rw-r--r-- | tests/TestEntry.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/TestEntry.cpp b/tests/TestEntry.cpp index 708654a6a..39e4bd12c 100644 --- a/tests/TestEntry.cpp +++ b/tests/TestEntry.cpp @@ -124,7 +124,7 @@ void TestEntry::testClone() QVERIFY(entryCloneResetTime->timeInfo().creationTime() != entryOrg->timeInfo().creationTime()); // Date back history of original entry - Entry * firstHistoryItem = entryOrg->historyItems()[0]; + Entry* firstHistoryItem = entryOrg->historyItems()[0]; TimeInfo entryOrgHistoryTimeInfo = firstHistoryItem->timeInfo(); QDateTime datedBackEntryOrgModificationTime = entryOrgHistoryTimeInfo.lastModificationTime().addMSecs(-10); entryOrgHistoryTimeInfo.setLastModificationTime(datedBackEntryOrgModificationTime); @@ -140,9 +140,8 @@ void TestEntry::testClone() // Timeinfo of history items should not be modified QList<Entry*> entryOrgHistory = entryOrg->historyItems(), clonedHistory = entryCloneHistory->historyItems(); auto entryOrgHistoryItem = entryOrgHistory.constBegin(); - for(auto entryCloneHistoryItem = clonedHistory.constBegin() - ;entryCloneHistoryItem != clonedHistory.constEnd() - ;++entryCloneHistoryItem, ++entryOrgHistoryItem) { + for (auto entryCloneHistoryItem = clonedHistory.constBegin(); entryCloneHistoryItem != clonedHistory.constEnd(); + ++entryCloneHistoryItem, ++entryOrgHistoryItem) { QCOMPARE((*entryOrgHistoryItem)->timeInfo(), (*entryCloneHistoryItem)->timeInfo()); } |