mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-11 11:05:23 -04:00
Change the Entry attributes/attachment API to provide a stable key order.
This commit is contained in:
parent
b3063c6fc8
commit
d527e63f1f
6 changed files with 73 additions and 35 deletions
|
@ -79,8 +79,8 @@ void TestKeePass2Reader::testProtectedStrings()
|
|||
QCOMPARE(entry->title(), QString("Sample Entry"));
|
||||
QCOMPARE(entry->username(), QString("Protected User Name"));
|
||||
QCOMPARE(entry->password(), QString("ProtectedPassword"));
|
||||
QCOMPARE(entry->attributes().value("TestProtected"), QString("ABC"));
|
||||
QCOMPARE(entry->attributes().value("TestUnprotected"), QString("DEF"));
|
||||
QCOMPARE(entry->attributeValue("TestProtected"), QString("ABC"));
|
||||
QCOMPARE(entry->attributeValue("TestUnprotected"), QString("DEF"));
|
||||
|
||||
QVERIFY(!db->metadata()->protectTitle());
|
||||
QVERIFY(db->metadata()->protectUsername());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue