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/TestCli.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/TestCli.cpp')
-rw-r--r-- | tests/TestCli.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/TestCli.cpp b/tests/TestCli.cpp index d9fbc25b4..8bc865799 100644 --- a/tests/TestCli.cpp +++ b/tests/TestCli.cpp @@ -549,8 +549,7 @@ void TestCli::testCreate() m_stderrFile->reset(); m_stdoutFile->reset(); - QCOMPARE(m_stdoutFile->readLine(), - QByteArray("Enter password to encrypt database (optional): \n")); + QCOMPARE(m_stdoutFile->readLine(), QByteArray("Enter password to encrypt database (optional): \n")); QCOMPARE(m_stdoutFile->readLine(), QByteArray("Successfully created new database.\n")); Utils::Test::setNextPassword("a"); @@ -578,8 +577,7 @@ void TestCli::testCreate() m_stdoutFile->seek(pos); m_stderrFile->seek(errPos); - QCOMPARE(m_stdoutFile->readLine(), - QByteArray("Enter password to encrypt database (optional): \n")); + QCOMPARE(m_stdoutFile->readLine(), QByteArray("Enter password to encrypt database (optional): \n")); QCOMPARE(m_stdoutFile->readLine(), QByteArray("Successfully created new database.\n")); Utils::Test::setNextPassword("a"); @@ -596,8 +594,7 @@ void TestCli::testCreate() m_stdoutFile->seek(pos); m_stderrFile->seek(errPos); - QCOMPARE(m_stdoutFile->readLine(), - QByteArray("Enter password to encrypt database (optional): \n")); + QCOMPARE(m_stdoutFile->readLine(), QByteArray("Enter password to encrypt database (optional): \n")); QCOMPARE(m_stdoutFile->readLine(), QByteArray("Successfully created new database.\n")); Utils::Test::setNextPassword("a"); @@ -1041,8 +1038,7 @@ void TestCli::testImport() importCmd.execute({"import", "-q", m_xmlFile->fileName(), databaseFilenameQuiet}); m_stdoutFile->seek(pos); - QCOMPARE(m_stdoutFile->readAll(), - QByteArray("Enter password to encrypt database (optional): \n")); + QCOMPARE(m_stdoutFile->readAll(), QByteArray("Enter password to encrypt database (optional): \n")); Utils::Test::setNextPassword("a"); auto dbQuiet = QSharedPointer<Database>(Utils::unlockDatabase(databaseFilenameQuiet, true, "", "", Utils::DEVNULL)); |