Commit Graph

30 Commits

Author SHA1 Message Date
Aaron Seigo
82eee5c3b7 avoid compiling in debug strings when compiled without debug 2011-07-29 15:46:52 +02:00
Aaron Seigo
9701a7a2ad build 2011-07-21 14:48:12 +02:00
Aaron Seigo
6c21a28382 5 pass, 1 fail. to celebrate, some minor cleanups ;) 2011-07-15 14:18:17 +02:00
Aaron Seigo
acb2644b16 -2 failing tests 2011-07-15 14:09:19 +02:00
Aaron Seigo
cebb2ea6d6 port the tests 2011-07-15 12:58:56 +02:00
Aaron Seigo
643045abf3 fix the test 2011-07-08 20:47:42 +02:00
Aaron Seigo
8f6b17fb0e --PackageMetadata; 2011-05-31 00:59:35 +02:00
Aaron Seigo
b0c769c4c1 this feature is no longer tied to QCA 2011-05-27 12:27:52 +02:00
Aaron Seigo
a5effc3b48 fix up the test 2011-05-26 18:56:24 +02:00
Jeremy Whiting
4911e4b75c Add QByteArray and QString wrappers around + as needed.
Fixes kdelibs building with Qt 4.8
2011-05-11 21:46:35 -06:00
David Faure
476f2f190f Enable -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS
Mostly needed fixes in the unittests, due to QCOMPARE template magic
failing with QString vs QStringBuilder.
2011-04-27 01:11:14 +02:00
Montel Laurent
955137bf2f don't check pointer before to delete it 2011-04-26 18:29:48 +02:00
David Faure
5eb44c3f0d Fix unit test for the case where $HOME is a symlink; KStandardDirs resolves to canonical paths.
svn path=/trunk/KDE/kdelibs/; revision=1200673
2010-11-25 13:21:56 +00:00
Aaron J. Seigo
d73831e8f0 * hash() -> contentsHash()
* add the metadata file to the hash as well
* update test

svn path=/trunk/KDE/kdelibs/; revision=1026497
2009-09-21 21:48:19 +00:00
Aaron J. Seigo
19f55f804b packages can now generate a hash of their contents; inc unit test
svn path=/trunk/KDE/kdelibs/; revision=1026489
2009-09-21 21:37:44 +00:00
David Faure
2592544047 Aaron, you're not using -DKDE4_BUILD_TESTS=TRUE? Bad boy!
CCMAIL: aseigo@kde.org

svn path=/trunk/KDE/kdelibs/; revision=879886
2008-11-04 09:36:00 +00:00
Aaron J. Seigo
1b523b9054 ok, this time JUST the plasma dir ;)
svn path=/trunk/KDE/kdelibs/; revision=879759
2008-11-03 23:08:39 +00:00
Aaron J. Seigo
fa5a2d87d9 bum-de-dum! plasma to kdelibs.
svn path=/trunk/KDE/kdelibs/; revision=879757
2008-11-03 23:03:26 +00:00
Anne-Marie Mahfouf
cde5d1a29f fix tests
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=879114
2008-11-02 13:14:38 +00:00
Pino Toscano
21daad5ce1 adapt to the new Package API
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=878955
2008-11-02 09:26:59 +00:00
Aaron J. Seigo
7dd036c4ab fix the test
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=865200
2008-09-27 00:17:07 +00:00
Aaron J. Seigo
67a38e23e8 not much point in having tests if they aren't build
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=821607
2008-06-17 23:21:39 +00:00
Aaron J. Seigo
aad4f7e305 build and pass
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779707
2008-02-26 20:48:02 +00:00
Paolo Capriotti
7dbc6b9ef1 Package refactoring as discussed on panel-devel.
* Icon, preview, screenshot and release notes are gone.
* Everything in a package (except metadata) is in the contents/ directory.
* Package::createPackage and Package::installPackage cleanup.
* Added Package::metadata method to retrieve a metadata object.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=743935
2007-12-02 12:04:57 +00:00
Paolo Capriotti
b88aea051e Cleanup of Package classes as discussed on panel-devel.
* Add convenience constructor to the Package class.
* Make some methods const in PackageStructures.
* Use QByteArray to store keys in PackageStructures, so that they are compared
  by value, and not by address.
* Add a test checking that the path to the metadata file is retrieved correctly.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=741935
2007-11-26 19:16:40 +00:00
Bertjan Broeksema
0c17b03543 - Added some tests for Package::knownPackages.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=734732
2007-11-09 19:03:50 +00:00
Bertjan Broeksema
a7d2c9d782 - The metadata.desktop file is obligatory now for each package.
- Adjusted tests to reflect the fact that the metadata.desktop file is
  obligatory now.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=734451
2007-11-08 22:13:13 +00:00
Bertjan Broeksema
6bba95aa0b - Added a test for the entryList method of Package.
- Added a TODO list to keep track of tests which need work.
  Feel free to add suggestions for tests or enhancements of tests.
  When time permits i'll work on it.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=734422
2007-11-08 20:27:43 +00:00
Bertjan Broeksema
3b744c6a23 - Added a test for both Package::filePath() methods.
- Changed Package::filePath(type, filename)
  It always prepends the basePath now and only appends the filename if 
  filename != QString(). What i did understand from the api docs this is
  the intended behaviour.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=732292
2007-11-03 12:22:21 +00:00
Bertjan Broeksema
c9ff90ec0e - Started woprking on package tests for a PlasmoidPackage.
- Fixed behavior of Package::isValid()

Reviewed by aseigo.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=732191
2007-11-03 01:50:57 +00:00