141 Commits

Author SHA1 Message Date
timlinux
133b5dcbe7 Rolled back r8764 - as per Peter Ersts request we will leave raster unit test failing for the release until we have explained the small differences in raster rendering between 0.10.0 and 0.11.0
git-svn-id: http://svn.osgeo.org/qgis/trunk@8768 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-13 23:18:10 +00:00
timlinux
1990dab05a Fixed qgsgeometry test so that it passes:
- clear member vars between each test
 - added some geometry dump helpers
 - generally neatened up unit test implementation



git-svn-id: http://svn.osgeo.org/qgis/trunk@8767 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-13 23:07:11 +00:00
timlinux
8f263b9f7d Use rects for geometry tests rather than triangles
git-svn-id: http://svn.osgeo.org/qgis/trunk@8766 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-13 21:37:40 +00:00
timlinux
ea2f7eafe4 updated raster unit test control images
git-svn-id: http://svn.osgeo.org/qgis/trunk@8765 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-13 17:20:03 +00:00
timlinux
eab25fb445 use correct geom type for Regression test 1141
git-svn-id: http://svn.osgeo.org/qgis/trunk@8763 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-12 21:01:43 +00:00
timlinux
72c5978db1 Regression test for ticket #1141
git-svn-id: http://svn.osgeo.org/qgis/trunk@8762 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-12 20:27:14 +00:00
timlinux
3f7541367a No need to debug out qgsappication vars - just call showSettings()
git-svn-id: http://svn.osgeo.org/qgis/trunk@8761 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-12 20:24:49 +00:00
timlinux
b627e2c8af fix divide by zero bug in quickprint. Fix issue preventing quickprint test from running
git-svn-id: http://svn.osgeo.org/qgis/trunk@8733 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-08 10:15:38 +00:00
timlinux
2e924199aa Updated control images for small differences in rendering with renderer context merge
git-svn-id: http://svn.osgeo.org/qgis/trunk@8732 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-08 09:54:15 +00:00
timlinux
797ff2c7fa Use qgisapp path properly for quickprint test too
git-svn-id: http://svn.osgeo.org/qgis/trunk@8718 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-06 22:39:11 +00:00
timlinux
786ca98eea Last tweak for app test to compile & work
git-svn-id: http://svn.osgeo.org/qgis/trunk@8717 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-06 22:21:56 +00:00
timlinux
a0adb75823 Fixed incorrectly name method in app test
git-svn-id: http://svn.osgeo.org/qgis/trunk@8716 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-06 22:15:02 +00:00
timlinux
0888e99a8c Updates so that paths are correctly set based on changes in
qgisapplication



git-svn-id: http://svn.osgeo.org/qgis/trunk@8715 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-06 22:04:28 +00:00
timlinux
ada4534450 Use new mechanism to find path. Test still fails due to small differences in rendered output
git-svn-id: http://svn.osgeo.org/qgis/trunk@8714 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-06 11:46:51 +00:00
timlinux
652379983d Use new prefix path mechanism to locate resources
git-svn-id: http://svn.osgeo.org/qgis/trunk@8713 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-06 11:41:07 +00:00
timlinux
63b3d29180 Fixed broken filewriter unit test by changes in qgsapplication by adding a mechanism to find the install root of
qgis.


git-svn-id: http://svn.osgeo.org/qgis/trunk@8712 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-06 11:36:54 +00:00
mhugent
813a85f4b3 Changed testimage for renderers
git-svn-id: http://svn.osgeo.org/qgis/trunk@8451 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-17 12:52:44 +00:00
mhugent
d528050409 Fix for continuous color rendering of points, changed test qml files to mm units
git-svn-id: http://svn.osgeo.org/qgis/trunk@8448 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-17 11:45:55 +00:00
jef
be68b39984 fix tests to work with QT_NO_CAST_TO_ASCII
git-svn-id: http://svn.osgeo.org/qgis/trunk@8424 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-13 18:51:56 +00:00
timlinux
01c8559dde Fix test breakages caused by recent build system changes
git-svn-id: http://svn.osgeo.org/qgis/trunk@8359 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-04-17 12:28:46 +00:00
mhugent
fb8424dbfa Merge of C-API into trunk
git-svn-id: http://svn.osgeo.org/qgis/trunk@8222 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-14 14:09:18 +00:00
timlinux
e938c883b0 Union test
git-svn-id: http://svn.osgeo.org/qgis/trunk@8181 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-02-26 10:20:23 +00:00
timlinux
ad919f2481 Initial test for qgsgeometry. At the moment it only does the following:
- creates some test intersecting and non intersecting geometries before each test runs
 - destroys these after each test runs
 - performs a simple intersection and non-intersection test

Please feel free to add further tests here as you work on qgsgeometry - its very simple to do with the framework I have put in place now...


git-svn-id: http://svn.osgeo.org/qgis/trunk@8180 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-02-26 02:52:00 +00:00
timlinux
e4e86b8f29 Renamed landsat_clip to landsat and updated raster test accordingly
git-svn-id: http://svn.osgeo.org/qgis/trunk@8050 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-26 01:23:08 +00:00
timlinux
21881f444c Removed redundant maplayer section
git-svn-id: http://svn.osgeo.org/qgis/trunk@8049 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-26 01:08:04 +00:00
timlinux
8fc33a44c5 Added unit test for setting raster qml which sets bands rgb as 875
git-svn-id: http://svn.osgeo.org/qgis/trunk@8046 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-25 20:16:04 +00:00
timlinux
d5e8697f5a Added qml for testing landsat
git-svn-id: http://svn.osgeo.org/qgis/trunk@8045 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-25 19:29:04 +00:00
timlinux
671a782505 Added mising expected landsat basic control image
git-svn-id: http://svn.osgeo.org/qgis/trunk@8040 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-25 00:33:58 +00:00
timlinux
4392c31e0f Added raster test for a multiband image
Added missing loadDefaultStyle to raster ctor (its not enabled in ui for 0.9.2 since its untested and unstable)
Added test image for testing multiband raster images


git-svn-id: http://svn.osgeo.org/qgis/trunk@8038 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-24 18:36:53 +00:00
timlinux
44e0de725c Use qRgba to set pixel values
git-svn-id: http://svn.osgeo.org/qgis/trunk@8024 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 19:24:45 +00:00
timlinux
34acd76b75 Updated control image for raster pseudo tests
git-svn-id: http://svn.osgeo.org/qgis/trunk@8022 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 15:59:05 +00:00
timlinux
09e7b2de0a Specify bgcolour as 152,219,249 so it doesnt look so turdacious on windows
git-svn-id: http://svn.osgeo.org/qgis/trunk@8021 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 15:51:30 +00:00
timlinux
ef30b63e79 Fix point size so unit test passes again
git-svn-id: http://svn.osgeo.org/qgis/trunk@8020 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 14:49:04 +00:00
timlinux
f00c8c0e70 Removed polygon outlines so maprender test passes
git-svn-id: http://svn.osgeo.org/qgis/trunk@8019 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 14:43:03 +00:00
timlinux
77582cb7b0 Prefix image urls with file://
git-svn-id: http://svn.osgeo.org/qgis/trunk@8018 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 14:15:08 +00:00
timlinux
0fb249930c Updated these tests to use the qgsrenderchecker class to validate results.
srcMakelist modified to gui tests will build


git-svn-id: http://svn.osgeo.org/qgis/trunk@8017 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 13:17:30 +00:00
timlinux
35213117ac Added a helper class for unit tests that will compare an image with a maprender product and return true or false based on their equiality or on the time it takes to render the output. It will also produce a difference image so that dissimilar areas in the two images can easily be identified. Lastly it generates a simple report as an html snippet for easy inclusion of results in a test report in a web browser.
git-svn-id: http://svn.osgeo.org/qgis/trunk@8016 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 13:15:01 +00:00
timlinux
80ef2deec5 Added first of gui lib tests (for quickprint)
git-svn-id: http://svn.osgeo.org/qgis/trunk@8015 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 13:11:27 +00:00
timlinux
bdcae622b8 Updates for test data:
- fix issues with qmls so tests run properly
 - updated expected images to be 400x400 rather than 800x800
 - added new expected image results for new tests which will be committed shortly


git-svn-id: http://svn.osgeo.org/qgis/trunk@8014 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 13:10:22 +00:00
timlinux
231c70a605 Unit test for pseudocolor
git-svn-id: http://svn.osgeo.org/qgis/trunk@7981 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-16 10:24:00 +00:00
timlinux
2d4a45ef44 Updates to raster tests - added image writing capability. At teh moment it will write to /tmp/raster_test.png. Later I will write different files out after performing various colour and transparency operations on the test dataset.
git-svn-id: http://svn.osgeo.org/qgis/trunk@7979 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-16 01:47:13 +00:00
timlinux
e111ce0906 Added a test for testing rendering performance. The test does the following:
- test for presence of test dataset
 - if test data is not present writes it to tmp
 - test data set is (180 /0.5) * (90 /0.5) polygons (each being .5 degree box)
 - renders the dataset to an image and times how long it takes to do that


git-svn-id: http://svn.osgeo.org/qgis/trunk@7960 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-14 12:44:44 +00:00
homann
3fc80ad366 Path fix for renderer test
git-svn-id: http://svn.osgeo.org/qgis/trunk@7938 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-12 11:52:34 +00:00
homann
665cdf66c0 Fix for paths in testqgsapplication
git-svn-id: http://svn.osgeo.org/qgis/trunk@7937 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-12 10:11:43 +00:00
timlinux
3c984a2429 Micky Mouse got in my qml...this patch removes him with prejudice...
git-svn-id: http://svn.osgeo.org/qgis/trunk@7931 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-11 15:43:22 +00:00
gsherman
c73ffbe699 Merge of raster transparency branch
git-svn-id: http://svn.osgeo.org/qgis/trunk@7926 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-11 06:38:10 +00:00
timlinux
8a55d7f241 Merge renderer branch to trunk r7761:7920
git-svn-id: http://svn.osgeo.org/qgis/trunk@7922 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-10 22:38:05 +00:00
homann
db0ca5ba7e Fixed paths on WinXP for application test
git-svn-id: http://svn.osgeo.org/qgis/trunk@7919 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-10 20:23:38 +00:00
timlinux
ae0901d755 Added various qmls to test data for unit testing different renderers
git-svn-id: http://svn.osgeo.org/qgis/trunk@7835 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-03 17:48:28 +00:00
timlinux
2d43c3c73a Minor change to attribution
git-svn-id: http://svn.osgeo.org/qgis/trunk@7718 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-12-06 01:15:01 +00:00