338 Commits

Author SHA1 Message Date
Nyall Dawson
d4b659ebd3 Label tests for buffer and shadow 2015-06-24 17:11:45 +10:00
Nyall Dawson
d0a624dfec More test mask updates 2015-06-23 21:38:56 +10:00
Nyall Dawson
99150dd39e Add delimited provider to common provider tests, fix records missing
from delimited layers when geometry was null.
2015-06-23 16:35:42 +10:00
Nyall Dawson
0728155b1f Some test masks for OSX 2015-06-23 16:35:04 +10:00
Nyall Dawson
32c098d4dd More updated test mask images - moar green!! 2015-06-19 22:11:48 +10:00
Nyall Dawson
e108febb5e Clean up diagram tests
- Consolidate tests to single file
- Don't use composition for testing
2015-06-18 21:03:42 +10:00
Nyall Dawson
75b1309921 More test mask images 2015-06-18 16:25:42 +10:00
Nyall Dawson
6deb520ff1 Make raster blend modes tests more robust 2015-06-18 16:25:42 +10:00
Nyall Dawson
b561c6bc0b More mask images for labeling tests 2015-06-17 19:26:22 +10:00
Matthias Kuhn
3dbe7f5e0c Decouple composer table tests 2015-06-17 09:29:30 +02:00
Matthias Kuhn
fb7d0d2e18 Fix some tests on Fedora 2015-06-17 09:29:29 +02:00
Nyall Dawson
d8b7796952 Add some more test mask images 2015-06-16 21:36:05 +10:00
Nyall Dawson
e57c59b289 Add some test mask to get label tests to pass in vivid 2015-06-16 20:56:00 +10:00
Nyall Dawson
170d96b0bc Labeling test fixes
- Remove outdated osx reference images
- Update expected PAL server images
- Add some mask images for server
2015-06-16 20:55:34 +10:00
Nyall Dawson
559d7bb943 [rastercalc] Rework raster calculator to use QGIS raster classes
...rather than reading input layers directly through GDAL.
Benefits include more robust handling of nodata/data type conversions,
less code duplication, also being able to take advantage of features
in QGIS raster code like handling gain/offset in rasters. (fix #12450)

Also, add a choice of output projection to the raster calculator.
Previously the output CRS would be taken from the first raster, with
no guarantees that the output extent matched the output CRS. This
resulted in empty/misplaced rasters. (fix #3649)
2015-06-10 21:45:37 +10:00
Marco Hugentobler
13d67c09cc Fix and wkt formating for delimited text provider test 2015-05-26 15:22:45 +02:00
Matthias Kuhn
32463d0c15 Postgres provider: test default values are correctly returned 2015-05-23 18:28:30 +02:00
Matthias Kuhn
afc3996f6c Add shapefile provider tests
+ Fix OGR provider so it does not return features without geometry when
filtering with a FilterRect
2015-05-22 21:03:47 +02:00
Matthias Kuhn
2fe3f55775 Provider testing
* Test more operations
 * Include spatialite tests
2015-05-22 19:39:24 +02:00
Matthias Kuhn
ec9e1464c1 Provider test 2015-05-22 11:57:16 +02:00
Matthias Kuhn
a2ae8b4e38 Add unit tests for postgres provider
basically to get a framework to test the expression compiler
2015-05-22 11:57:16 +02:00
Radim Blazek
7c419bf269 [GRASS] test case 2015-04-09 10:55:08 +02:00
Nyall Dawson
77ede9ca61 Boost unit test coverage of paint effects 2015-04-09 06:56:34 +10:00
Nyall Dawson
8b37ea2b05 [FEATURE] Add option to symbology to prevent clipping of features
This option (located under the symbol advanced menu) disables the
automatic clipping of lines/polygons to the canvas extent. In
some cases this clipping results in unfavourable symbology (eg
centroid fills where the centroid must always be the actual
feature's centroid). (fix #9757)
2015-03-28 21:16:45 +11:00
Nyall Dawson
742f3233ee [FEATURE] Paint effects for layers and symbol layers
This commit adds a new framework for implementing paint effects, which
modify the results of QPainter operations to apply visual effects
such as drop shadows and blurs.

The initial implementation allows for effects to be applied to entire
layers and individual symbol layers.

Included are a drop shadow, inner shadow, blur, inner glow, outer glow,
colorise and transform effect. A "stack" effect is also implemented
which allows other paint effects to be combined in various ways.

Sponsored by hundreds of generous kickstarter contributors!
2015-03-28 20:04:50 +11:00
Chris Crook
0beb1707b6 Adapting longlong test to general type inference test 2015-03-22 08:51:42 +13:00
Chris Crook
532599e491 Merge branch '5605-types' of git://github.com/carolinux/QGIS into carolinux-5605-types 2015-03-21 20:57:02 +13:00
carolinux
48591dffbb Added testcase for longs 2015-03-19 17:12:23 +08:00
Nyall Dawson
cafc722d92 Add some GDAL provider unit tests...
(...doing penance for my 2.8 sins)
2015-03-10 22:54:13 +11:00
Sandro Santilli
10d2ce4584 Add tests for rotated map
Thanks Nyall for initial template.

Include tests for raster layers, SVG and simple markers
with data-defined or fixed rotation, parallel line labels.
2015-02-20 11:30:11 +01:00
Nyall Dawson
7f2fac15dc Add some more test mask images
Also some debugging info for tests failing on certain platforms.
2015-02-19 16:24:11 +11:00
Nyall Dawson
854c0b8bab Allow use of masks for unit test control images
Masks set which pixels in the control image should be tested and
an optional tolerance for each pixel. This is done via the colors
in the mask image - white pixels are ignored, black must be an
exact match, and gray levels represent the maximum color component
deviation for that pixel.

This should replace the fragile anomaly images, in that a single
control image with a suitable mask will not be susceptible to
antialiasing differences, etc.

A new script (scripts/generate_test_mask_image.py) is included which
either creates a new mask or modifies an existing mask to handle
an acceptable rendered image.

Ultimately, masking along with multi render checks for specific
platform differences should be flexible enough to meet our needs.
2015-02-19 07:23:57 +11:00
Sandro Santilli
fb344ff1b6 Use a simpler image for testing composer map rotation and overview
Update expected results and configuration of new image
Add rendering anomalies, as determined by travis ubuntu 12.02
2015-02-05 19:08:11 +01:00
Nyall Dawson
e0adf89d80 Add some missing tests for QgsImageOperation 2015-01-27 20:53:29 +11:00
Nyall Dawson
f7f89b37b9 Fix calculation of blur ops with non ARGB32_Premultiplied images 2015-01-26 14:27:20 +11:00
Nyall Dawson
670ad7b809 Add gaussian blur image operation 2015-01-21 20:02:42 +11:00
Nyall Dawson
be2d6d1a70 New QgsImageOperation class for operations that modify QImages
Contains framework for multithreaded operations on QImages, and
numerous operations such as grayscale, hue/saturation, brightness/
contrast modification, flip, blur, distance transform, alpha
modification and color overlays.
2015-01-21 18:58:10 +11:00
Sandro Santilli
ce8a9ba4af Add support for map rotation (hub #9330)
Includes widget to show and set map rotation.
Handle rotation in vector and raster renderers.
Ensure correct behavior of panning and zooming actions.

Drop compile-time defines for ARM and ANDROID, leaving only
the qreal based function to transform in place.

Update expected test results after eye comparison.
2014-12-07 16:30:41 +01:00
Nyall Dawson
ad32bbf40c Add some atlas reference images for precise (part 2) 2014-12-03 21:58:52 +11:00
Nyall Dawson
b07e4db27b Add some atlas reference images for precise (part 1) 2014-12-03 21:23:25 +11:00
Nyall Dawson
0f761949b8 Fix calculation of smart breaks when html has transparent background
Should finally fix troublesome composer html tests
2014-12-02 12:11:21 +11:00
Nyall Dawson
48edab4fe6 Hopefully fix intermittently failing composer html test 2014-12-01 19:28:50 +11:00
Nyall Dawson
d532af0b33 Add some test images and tweak test tolerances for utopic 2014-11-29 14:51:55 +11:00
Nyall Dawson
20f57c90d9 [composer] Make html tests text-free
Minimises cross platform rendering differences
2014-11-29 11:50:18 +11:00
Nyall Dawson
2ec4c2abd3 Regenerate incorrect test images and reenable atlas tests for travis 2014-11-25 06:13:19 +11:00
Nyall Dawson
09ab5696b1 Boost coverage of raster fill unit tests
Also add missing sip bindings for GUI widget
2014-11-19 22:24:02 +11:00
Nyall Dawson
52159851bf [FEATURE] Raster image symbol fill type
Allows for filling polygons with a tiled raster image. Options
include (data defined) file name, opacity, image size (in pixels,
mm or map units), coordinate mode (feature or view) and rotation.
2014-11-19 15:26:09 +11:00
Matthias Kuhn
581815f841 Fix atlas tests
* Recreates composition for every test and therefore removes internal
   dependency
 * Reorders method calls to make the test pass
 * Disable the test until https://github.com/qgis/QGIS/pull/1688
2014-11-14 19:14:51 +01:00
Nyall Dawson
31c32505bb Switch to RGB32 images for composition checker 2014-11-14 18:30:29 +01:00
Nyall Dawson
2cfcca10d2 Use a non-transparent background for composition checker
Fix composerhtml tests on precise
2014-11-14 18:30:28 +01:00