Felix Geyer
7c424e1b85
Merge updated modeltest from Qt 5.
2015-09-12 13:51:49 +02:00
Felix Geyer
9882f16614
Remove Tools::currentDateTimeUtc().
2015-09-12 13:51:49 +02:00
Felix Geyer
e2ac176d3c
Remove second argument of QSKIP call.
...
Has been removed in Qt 5.
2015-09-12 13:51:49 +02:00
Felix Geyer
a71e25a8ba
Fix GUI tests.
2015-09-12 13:51:49 +02:00
Felix Geyer
208b0f39e6
Adapt to QtConcurrent being a separate module now.
2015-09-12 13:51:49 +02:00
Felix Geyer
c714fc89f1
Add missing include statements.
2015-09-12 13:51:49 +02:00
Felix Geyer
5a745da07b
Remove QCOmmandLineParser.
...
It is part of Qt >= 5.2.
2015-09-12 13:51:49 +02:00
Felix Geyer
531018e58d
Remove QSaveFile and QLockFile.
...
They are part of Qt >= 5.1.
2015-09-12 13:51:49 +02:00
Felix Geyer
813c64a055
Port cmake files to Qt 5.
2015-09-12 13:51:49 +02:00
Akinori MUSHA
b773dbe645
Test if hitting the Down key moves the focus to the entry view.
2015-08-05 19:02:17 +09:00
Felix Geyer
2c17fdcff0
Correct link order of testhashedblockstream.
...
Fixes FTBFS on Windows.
2015-07-21 23:08:12 +02:00
Felix Geyer
98d9dae087
Test if reset() and close() write only one final block.
2015-07-20 21:51:32 +02:00
Felix Geyer
2033174d95
Test if we correctly detect errors when writing.
2015-07-20 21:35:48 +02:00
Felix Geyer
3d1c27ceb7
Copy the database in TestGui before opening it.
...
We don't want to create lock files in the source tree.
2015-07-19 19:33:47 +02:00
Felix Geyer
6d1ca363af
Remove support for clearing the Klipper history.
...
KDE Plasma 5 doesn't provide the DBus interface anymore and
this avoids the QtDBus dependency.
2015-07-16 20:02:10 +02:00
Felix Geyer
240919335f
Add missing EmptyUuids.xml test file.
2015-07-14 22:20:56 +02:00
Felix Geyer
ceb6a0383e
Add ability to export databases to CSV files.
...
Based on implementation by Florian Geyer <blueice@fobos.de>
Closes #57
2015-07-14 22:14:34 +02:00
Felix Geyer
c6105a08ab
KeePass2XmlReader: Don't fail wheh nreading empty UUIDs.
...
Closes #298
2015-07-13 21:01:55 +02:00
Felix Geyer
cfffdae573
Improve error reporing of layered streams.
2015-05-09 23:21:50 +02:00
Felix Geyer
f6243675c9
Warn if result of processInPlace() is unchecked.
...
Fix callers accordingly.
2015-05-09 23:21:50 +02:00
Felix Geyer
a762cef0a9
Catch and handle all errors from libgcrypt.
2015-05-09 23:21:44 +02:00
Felix Geyer
ae013c2196
Don't run gcrypt self tests.
...
Seems to be broken on some distros that enable hmac verification
of the binary but ship the signature in a separate package.
We have our own test cases for the algorithms we care about.
2015-05-09 17:32:52 +02:00
Felix Geyer
eefe844dcd
Merge remote-tracking branch 'github/pr/80'
...
https://github.com/keepassx/keepassx/pull/80
2015-05-06 20:56:57 +02:00
Felix Geyer
9e051e835b
Close databases when they are locked.
...
Previously we've only hidden access to them.
Closes #275
2015-04-05 10:38:36 +02:00
Ben Boeckel
c9d12e93c2
cmake: remove the LOCATION query
...
Newer CMake deprecates the property. It isn't necessary anyways since
add_test will recognize targets as the executable name and make the full
path automatically.
2015-02-26 00:30:06 -05:00
Felix Geyer
71d39865b3
Introduce a strict mode in KeePass2XmlReader.
...
Many errors are now ignored when not in strict mode so we can still parse
files that have been written by broken/incomplete implementations.
2014-12-01 21:52:51 +01:00
Akinori MUSHA
dd79105baa
Complete remove the toggle search action.
2014-11-19 11:46:38 +09:00
Akinori MUSHA
b1c3814972
Make Ctrl+F not toggle the search mode but always enable it.
...
Switching back from other applications, the previous behavior of Ctrl+F
would often bother you in that it would dismiss the search widget if it
was already enabled when you meant by the key you wanted to perform a
search.
Making Ctrl+F always set you in search mode should save user from having
to care about the mode which is persistent across application switching
and database locking.
2014-11-18 19:46:53 +09:00
Felix Geyer
0d6117bf4c
Do some basic self-checks when initializing the crypto backend.
2014-06-15 11:17:40 +02:00
Felix Geyer
916ab99d62
Skip TestQSaveFile::transactionalWriteErrorRenaming as user root.
...
You can't deny root access to a file.
Closes #201
2014-05-26 18:24:43 +02:00
Felix Geyer
9ac01c930d
Drop DatabaseWidget::groupView() and entryView().
2014-05-17 11:21:17 +02:00
Felix Geyer
a6d44034a4
Put test executables into their default location.
2014-05-16 13:10:26 +02:00
Florian Geyer
77af79498c
Move QTEST_GUILESS_MAIN statements before test cases.
2014-05-16 12:32:52 +02:00
Florian Geyer
ea3375490c
Introduce interface for exporter.
2014-05-16 12:32:06 +02:00
Florian Geyer
204cd8d971
Move exporter to separate class.
2014-05-16 12:07:22 +02:00
Florian Geyer
c2940a8f18
Extend TestEntrySearcher.
2014-05-16 10:51:22 +02:00
Florian Geyer
4f60df029d
Refactor TestEntrySearcher.
2014-05-16 00:26:09 +02:00
Florian Geyer
c90ac914bb
Refactor TestEntrySearcher.
2014-05-15 23:59:26 +02:00
Florian Geyer
8bf4826003
Move search into separate class.
2014-05-15 23:50:40 +02:00
Felix Geyer
bf39d0b1be
Enable entry title matching but always ask before performing auto-type.
2014-05-15 18:34:12 +02:00
Felix Geyer
147cd4ed7b
Add option to use the entry title for auto-type window matching.
2014-05-15 18:30:57 +02:00
Felix Geyer
b194c29166
Show a dialog when no window matches for auto-type.
2014-04-14 22:57:25 +02:00
Florian Geyer
4a08101a60
Remove obsolete ArgumentParser files.
2014-03-08 10:45:40 +01:00
Felix Geyer
b07de47e35
Add transform key benchmark to TestKeys.
2014-01-19 15:26:32 +01:00
Felix Geyer
bc14898b13
Replace ArgumentParser with a backport of QCommandLineParser from Qt 5.2.
2014-01-18 15:23:55 +01:00
Felix Geyer
1fce1ac905
Remove wrong check in TestGui.
...
When the window is not wide enough some actions are hidden.
2013-12-08 16:11:49 +01:00
Felix Geyer
af98c2636c
Fix compatibility with Qt < 4.7.
2013-11-30 13:47:39 +01:00
Ben Boeckel
66b3d22041
Use QString::toLatin1() rather than ::toAscii()
...
The toAscii (and fromAscii) are removed from Qt5 in favor of Latin1.
2013-11-24 21:19:20 +01:00
Felix Geyer
98c821df05
Add Group::exportToDb().
2013-11-22 13:36:46 +01:00
Felix Geyer
f2dfef8c41
Add flags to Entry::clone() for customized cloning.
2013-11-22 13:32:13 +01:00
Felix Geyer
5daf0853c9
Coding style fixes.
2013-10-13 18:08:50 +02:00
Felix Geyer
7dde8a771f
Use QUINT32_MAX in tests instead of hardcoding the number.
2013-10-12 19:11:57 +02:00
Felix Geyer
98d888063b
Add tests for Random::randomUInt() and randomUIntRange().
2013-10-09 23:11:18 +02:00
Felix Geyer
b64276c4e8
Make use of the TestGui::clickIndex() helper function.
2013-10-08 22:40:47 +02:00
Felix Geyer
f7dd63a126
Add gui tests for deleting entries from the recycle bin.
2013-10-08 22:36:27 +02:00
Felix Geyer
a68a86f19b
Test that the delete action moves entries to the recycle bin.
2013-10-08 22:14:02 +02:00
Felix Geyer
984b23de70
Add tests for the multi-entry delete feature.
2013-10-08 22:11:40 +02:00
Felix Geyer
6504b6f2bd
Drop Qt module name from include statements.
...
This is a preparation to be able to build KeePassX against Qt 5.
2013-10-03 15:18:16 +02:00
Felix Geyer
5c84aa308d
Improve error messages for reading and wriiting databases.
...
Closes #7
2013-06-30 14:43:02 +02:00
Felix Geyer
0ec29b2354
Raise error if we don't find exactly one root group.
2013-04-29 22:31:50 +02:00
Felix Geyer
f1bebe904a
Add tests for broken databases.
...
Make sure we detect the error and don't crash.
2013-04-29 22:31:50 +02:00
Felix Geyer
61ee763515
Add Entry::copyDataFrom().
2013-04-29 22:31:49 +02:00
Florian Geyer
63f7a0685f
Small ArgumentParser refactoring.
2013-04-27 11:40:10 +02:00
Felix Geyer
5786e2620a
Add unit test for Metadata::copyCustomIcons().
2013-04-07 19:38:18 +02:00
Florian Geyer
2558e6db79
First draft of an argument parser.
...
Possibility to set custom config path.
2013-04-06 11:00:45 +02:00
Felix Geyer
bee570c3cf
Add Group::clone().
...
Move all the data we want to clone into a GroupData struct.
2013-04-04 21:48:55 +02:00
Felix Geyer
e805a6ff82
Coding style fix.
2013-03-30 17:27:28 +01:00
Felix Geyer
5550d7af0d
Fix autotype test (build) failures on Mac OS and Windows.
...
We need to tell Windows what symbols the main program exports
and the autotype plugin imports.
On both systems the linker needs the path of the main program that
loads the plugin.
2013-03-29 16:27:02 +01:00
Florian Geyer
57b0c17733
Improve entry test.
2013-03-24 21:57:34 +01:00
Florian Geyer
6ee781a608
Add regression test for issue #56 .
2013-03-24 21:57:34 +01:00
Felix Geyer
21a80101ba
Add TestEntryModel::testDatabaseDelete().
...
It tests that EntryModel in EntryList mode correctly
removes entries from the model when that database of
these entries is deleted.
2013-03-24 14:00:23 +01:00
Felix Geyer
c7593a3047
Stop suppressing signals in Group dtor.
...
That way we emit entry/group removed signals.
Move cleanupParent() call to the bottom so we
maintain the group tree structure for objects that
connect to those signals.
2013-03-24 14:00:23 +01:00
Felix Geyer
9144765d56
Use a fixed sleep call instead of QTest::qWaitForWindowShown().
...
The latter seems to be broken and always seeps until it hits
the timeout (2s).
2012-11-02 15:43:45 +01:00
Florian Geyer
8347fd36ba
More auto-type tests.
2012-11-02 15:09:54 +01:00
Florian Geyer
ac56ac98f7
Extend auto-type test.
2012-10-28 18:18:24 +01:00
Felix Geyer
58b6fb36f8
Add missing files for the last commit.
2012-10-28 15:42:19 +01:00
Felix Geyer
606dbc6eb4
Add infrastructure for auto-type tests.
2012-10-28 15:33:44 +01:00
Felix Geyer
5d46ecdbe6
Don't use deprecated Qt methods.
2012-10-27 00:06:12 +02:00
Felix Geyer
8b8e55aa17
Store the filename instead of a QTemporaryFile in TestGui.
...
On Windows QTemporaryFile keeps the file handle open
which conflicts with QSaveFile.
2012-10-22 17:52:08 +02:00
Felix Geyer
9eac5f35d8
Close file in TestQSaveFile::autoFlush() so we can remove it.
2012-10-22 17:50:58 +02:00
Felix Geyer
47d3c7e05a
Disable TestQSaveFile::transactionalWriteErrorRenaming() on Windows.
...
QSaveFile::setPermissions() is not implemented in the QIODevice
based version for Qt 4.
2012-10-22 17:49:42 +02:00
Florian Geyer
92bf7c94d0
Whitespace separated search terms are AND concatenated.
2012-10-21 21:09:27 +02:00
Felix Geyer
e166722026
Implement database locking.
...
Closes #35
2012-10-12 12:12:00 +02:00
Felix Geyer
18d3fe55f8
Add support for database format 3.01 (HeaderHash).
...
Add test for the format 3.00 and upgrade Compressed.kdbx, NonAscii.kdbx
and ProtectedStrings.kdbx to 3.01.
Add a test for an incorrect HeaderHash.
2012-09-25 22:33:36 +02:00
Felix Geyer
6b13d18137
Rename KEEPASSX_QTEST_CORE_MAIN to QTEST_GUILESS_MAIN which is available in Qt 5.
2012-07-25 12:18:16 +02:00
Felix Geyer
2185afefed
Speed up TestGui by removing unnecessary waits.
...
Backport QTRY_VERIFY and QTRY_COMPARE from Qt 5.
2012-07-25 12:18:16 +02:00
Florian Geyer
c0e91e4f16
Refactor wildcard matcher test.
2012-07-24 20:35:36 +02:00
Felix Geyer
9ad4cc8783
Subclass QSortFilterProxyModel to hide the group column in EntryView.
...
QTreeView::hideColumn() does not work well with keyboard search.
2012-07-22 22:02:06 +02:00
Felix Geyer
edb644baef
Add TestGui::testCloneEntry().
2012-07-22 22:02:06 +02:00
Florian Geyer
7bd080760e
Make wildcard matcher case insensitive.
2012-07-22 14:58:15 +02:00
Florian Geyer
4f78c32461
Add custom wildcard matcher.
2012-07-22 14:43:45 +02:00
Felix Geyer
33b4cd8636
Don't add new entries to EntryModel when in search mode.
...
Only allow moving entries from one group to the other.
2012-07-21 22:21:49 +02:00
Felix Geyer
b6d9c2e486
Import Auto-Type associations in KeePass1Reader.
2012-07-19 23:21:12 +02:00
Felix Geyer
4781fc19fe
Add a few drag'n'drop tests.
2012-07-17 23:29:25 +02:00
Felix Geyer
7e9343c697
Fix CompositKey self assignment.
2012-07-17 10:57:08 +02:00
Felix Geyer
f767a098d6
Add GUI test for changing the database transform rounds.
...
Refs #34
2012-07-17 10:56:56 +02:00
Felix Geyer
2b694bab16
Refactor TestGui a bit.
2012-07-17 10:16:59 +02:00
Felix Geyer
af166a66b3
Add AutoTypeAssociationsModel class.
2012-07-16 17:39:20 +02:00
Felix Geyer
3c913f196f
In TestGui::testEditEntry() wait for the delayed Database::modified() signal.
2012-07-16 17:37:59 +02:00
Felix Geyer
f98d834edb
Move Auto-Type associations handling from Entry into an own class.
2012-07-16 09:54:04 +02:00