141 Commits

Author SHA1 Message Date
timlinux
506ba98c93 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/qgis@8768 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-13 23:18:10 +00:00
timlinux
a02ec68da1 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/qgis@8767 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-13 23:07:11 +00:00
timlinux
e0d68767aa Use rects for geometry tests rather than triangles
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8766 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-13 21:37:40 +00:00
timlinux
7241968524 updated raster unit test control images
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8765 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-13 17:20:03 +00:00
timlinux
9be215b620 use correct geom type for Regression test 1141
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8763 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-12 21:01:43 +00:00
timlinux
3b86e82265 Regression test for ticket #1141
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8762 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-12 20:27:14 +00:00
timlinux
e6d6bbdb93 No need to debug out qgsappication vars - just call showSettings()
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8761 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-12 20:24:49 +00:00
timlinux
cceb43b479 fix divide by zero bug in quickprint. Fix issue preventing quickprint test from running
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8733 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-08 10:15:38 +00:00
timlinux
7f8cf50209 Updated control images for small differences in rendering with renderer context merge
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8732 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-08 09:54:15 +00:00
timlinux
4daf0252e5 Use qgisapp path properly for quickprint test too
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8718 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-06 22:39:11 +00:00
timlinux
3019d8c068 Last tweak for app test to compile & work
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8717 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-06 22:21:56 +00:00
timlinux
1ac4307bc1 Fixed incorrectly name method in app test
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8716 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-06 22:15:02 +00:00
timlinux
4eff113005 Updates so that paths are correctly set based on changes in
qgisapplication



git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8715 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-06 22:04:28 +00:00
timlinux
6acb003e3e 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/qgis@8714 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-06 11:46:51 +00:00
timlinux
1e80162b17 Use new prefix path mechanism to locate resources
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8713 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-06 11:41:07 +00:00
timlinux
4d7bdc13dc 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/qgis@8712 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-06 11:36:54 +00:00
mhugent
ff46e47c1c Changed testimage for renderers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8451 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-17 12:52:44 +00:00
mhugent
3e48f3a388 Fix for continuous color rendering of points, changed test qml files to mm units
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8448 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-17 11:45:55 +00:00
jef
9066b88728 fix tests to work with QT_NO_CAST_TO_ASCII
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8424 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-13 18:51:56 +00:00
timlinux
c815178169 Fix test breakages caused by recent build system changes
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8359 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-04-17 12:28:46 +00:00
mhugent
1f9af52928 Merge of C-API into trunk
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8222 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-14 14:09:18 +00:00
timlinux
63da384eb5 Union test
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8181 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-02-26 10:20:23 +00:00
timlinux
cce210c66a 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/qgis@8180 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-02-26 02:52:00 +00:00
timlinux
fd6a9276f8 Renamed landsat_clip to landsat and updated raster test accordingly
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8050 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-26 01:23:08 +00:00
timlinux
79fe4c3c21 Removed redundant maplayer section
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8049 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-26 01:08:04 +00:00
timlinux
d44a8cf4eb Added unit test for setting raster qml which sets bands rgb as 875
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8046 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-25 20:16:04 +00:00
timlinux
9f026c7db4 Added qml for testing landsat
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8045 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-25 19:29:04 +00:00
timlinux
c64a1730e3 Added mising expected landsat basic control image
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8040 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-25 00:33:58 +00:00
timlinux
bf5b22eb7d 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/qgis@8038 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-24 18:36:53 +00:00
timlinux
239fbdcf4a Use qRgba to set pixel values
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8024 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 19:24:45 +00:00
timlinux
989db94d68 Updated control image for raster pseudo tests
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8022 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 15:59:05 +00:00
timlinux
f61626838e Specify bgcolour as 152,219,249 so it doesnt look so turdacious on windows
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8021 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 15:51:30 +00:00
timlinux
f46dc1a71c Fix point size so unit test passes again
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8020 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 14:49:04 +00:00
timlinux
22d4c70e97 Removed polygon outlines so maprender test passes
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8019 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 14:43:03 +00:00
timlinux
f8a8c8dca8 Prefix image urls with file://
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8018 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 14:15:08 +00:00
timlinux
4272a46662 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/qgis@8017 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 13:17:30 +00:00
timlinux
0290817030 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/qgis@8016 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 13:15:01 +00:00
timlinux
6e4cfb4d15 Added first of gui lib tests (for quickprint)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8015 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 13:11:27 +00:00
timlinux
49e899075c 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/qgis@8014 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 13:10:22 +00:00
timlinux
4a737ec511 Unit test for pseudocolor
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7981 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-16 10:24:00 +00:00
timlinux
831a55edcb 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/qgis@7979 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-16 01:47:13 +00:00
timlinux
0adf5f7d1d 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/qgis@7960 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-14 12:44:44 +00:00
homann
a36aef0048 Path fix for renderer test
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7938 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-12 11:52:34 +00:00
homann
d50955481d Fix for paths in testqgsapplication
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7937 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-12 10:11:43 +00:00
timlinux
baabcc2778 Micky Mouse got in my qml...this patch removes him with prejudice...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7931 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-11 15:43:22 +00:00
gsherman
dcabe173a8 Merge of raster transparency branch
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7926 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-11 06:38:10 +00:00
timlinux
a6edadd994 Merge renderer branch to trunk r7761:7920
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7922 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-10 22:38:05 +00:00
homann
27afa4e92e Fixed paths on WinXP for application test
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7919 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-10 20:23:38 +00:00
timlinux
bea5c523ec Added various qmls to test data for unit testing different renderers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7835 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-03 17:48:28 +00:00
timlinux
d11d59f71c Minor change to attribution
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7718 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-12-06 01:15:01 +00:00