954 Commits

Author SHA1 Message Date
Juergen E. Fischer
bc7a5517dd cleanup: replace boolean comparison (x==true => x / x==false => x) (followup b40868c8) 2014-04-22 10:35:01 +02:00
Etienne Tourigny
2d737510d4 Merge pull request #1213 from etiennesky/histogram_bars
Histogram bars
2014-04-16 21:46:42 -03:00
Juergen E. Fischer
a7b5a8a574 indentation update 2014-04-06 12:41:09 +02:00
Denis Rouzaud
8b06a16a75 model/view for layer/field selectors 2014-04-03 14:51:26 +02:00
Nyall Dawson
0b32f2ac38 [tests] Fix composer tests. Rebuild images following MTR rendering changes. Switch tests to use standard test font. 2014-04-03 22:56:34 +11:00
Juergen E. Fischer
4619246f54 fix regression992 test 2014-03-31 23:07:12 +02:00
Juergen E. Fischer
0693fe93ee fix some tests crashes, fix some tests and some mtr updates 2014-03-29 17:55:29 +01:00
Carl Simonson
8dff030787 Be explicit with Qt link libraries
For the analysis tests, instead of linking with all the found
QT_LIBRARIES, pick only the ones that are needed.
2014-03-27 18:43:49 -05:00
Martin Dobias
d0c93b94b2 Merge pull request #1244 from simonsonc/qt-no-deprecated
Fix uses of deprecated Qt methods
2014-03-26 15:37:59 +01:00
Larry Shaffer
20933dedd9 Add README.rst for labeling unit tests 2014-03-25 17:09:42 -06:00
Martin Dobias
af9da1deb4 Invalid CRS instances should be equal 2014-03-25 15:15:36 +01:00
Larry Shaffer
f29d44e759 Add PDF composer output labeling tests setup
- Only support for Poppler with Cairo (pdftocairo), since without Cairo a PDF's vectors are not always rendered properly
2014-03-24 20:40:19 -06:00
Larry Shaffer
db4401fe00 Rebuild labeling tests control images with smaller size (420 x 280) 2014-03-24 20:40:19 -06:00
Larry Shaffer
d4c257f2a9 Fix labeling local server test class setup error 2014-03-24 11:47:04 -06:00
Larry Shaffer
a6f25c5386 Add render checker color tolerance to labeling tests 2014-03-24 11:47:04 -06:00
Nyall Dawson
942d5da59b Add option to ignore interior polygon rings when calculating buffered shading for shapeburst fill mode (can be useful for eg ignoring islands when shading water bodies) 2014-03-22 07:39:14 +11:00
Nyall Dawson
dd4975f285 Merge pull request #1255 from Oslandia/atlas_signals
Atlas signals
2014-03-21 13:23:59 +11:00
Nyall Dawson
13cbfd138c [FEATURE] Add 'shapeburst' fill style. Shapeburst fills implement a buffered gradient fill, where a gradient is drawn from the boundary of a polygon towards the polygon's centre. Configurable parameters include distance from the boundary to shade, use of color ramps or simple two color gradients, optional blurring of the fill and offsets. 2014-03-21 12:50:50 +11:00
Hugo Mercier
7805bc0555 Add unit test for atlas signals 2014-03-18 17:08:18 +01:00
Carl Simonson
3e0e0edec7 Fix uses of deprecated Qt methods
There are still a few leftovers from the Qt 3 to Qt 4 migration that can
be found by defining QT_NO_DEPRECATED. Here is a summary of the changes:

* QDir::convertSeparators was changed to QDir::toNativeSeparators with Qt 4

* QRexExp::numCaptures was changed to captureCount with Qt 4

* QTextIStream/QTextOStream was merged into QTextStream with Qt 4

* QFileDialog::selectFilter/filters was changed to
  selectNameFilter/nameFilters with Qt 4.4

* qVariantCanConvert/qVariantValue was changed to canConvert/value with Qt
  4

Note that if a conversion to Qt 5 will happen someday, this will have to
be done since Qt 5 removes these deprecations.
2014-03-16 11:16:25 -05:00
Larry Shaffer
fa157b0deb Add composer svg export label unit tests
- Fix composer composition setup to near identical output of canvas->image (finally, expect for symbology, which still seems to be double-antialiased)
- Rebuild control images for composer->image output
2014-03-14 12:25:36 -06:00
Juergen E. Fischer
b6b78ca7a4 expression: dump binary operations with brackets to break precedence (fixes #9783) 2014-03-14 18:50:53 +01:00
Larry Shaffer
cb998399cf Add allowable mismatch per group/test for labeling tests 2014-03-06 12:36:54 -07:00
Larry Shaffer
803bc296da Condense labeling test class inheritance and set up local server params from map settings 2014-03-06 12:36:54 -07:00
Larry Shaffer
53cfa9e203 Convert label unit tests to using only QgsMapSettings
- Rebuild all control images
2014-03-06 12:36:53 -07:00
Larry Shaffer
bad189813c Refactor composer label test to work with svg, pdf and multi-resolution classes
- Initial (untested) svg and pdf render-to-image setup
2014-03-06 12:36:53 -07:00
Larry Shaffer
6a1b706b48 Update label tests to ensure setup happens only once and load/delete only layer to test 2014-03-06 12:36:53 -07:00
Larry Shaffer
a49b9a7a45 Add some functions to Python unit test utilities 2014-03-06 12:36:53 -07:00
Larry Shaffer
b4f6813671 PEP8 cleanups for some unit test modules 2014-03-06 12:36:53 -07:00
Larry Shaffer
d991ebfd59 Possible cross-platform fix for app startup unit test 2014-03-05 23:18:57 -07:00
Nathan Woodrow
9b71d081f1 Merge pull request #1208 from nirvn/expression_wordwrap3
[expression] implement a wordwrap function (fix #9412)
2014-03-05 00:12:51 +11:00
Jürgen Fischer
2f2d6ac95b Merge pull request #1120 from 3nids/pasteconvertgeom
copy/paste: try to convert geometries (fixes #3604)
2014-03-03 09:38:30 +01:00
Denis Rouzaud
1d8faf2021 do not convert multiline to multipolygon if one of the part failed, also consider case of 3 vertices line with first and last vertex identical 2014-03-03 08:37:32 +01:00
Juergen E. Fischer
2a7752d589 fix ab105599b 2014-03-02 03:22:58 +01:00
Juergen E. Fischer
ab105599bb tests: make compareWkt more tolerant towards whitespaces 2014-02-28 22:30:29 +01:00
Denis Rouzaud
f538c8bd18 added test for QgsGeometry::convertToType 2014-02-28 13:57:18 +01:00
Larry Shaffer
b6d943e675 Update base labeling unit test class to work with QgsMapSettings 2014-02-26 21:39:26 -07:00
Larry Shaffer
2d21b674fa Ensure local server tests can run on ubuntu, followup to 7b2640d 2014-02-25 22:25:04 -07:00
Larry Shaffer
7b2640da1b Add debian-based setup for local test server 2014-02-25 17:54:56 -07:00
Larry Shaffer
4059c8fd5b Fix opening test results in browser on Ubuntu 2014-02-25 17:54:56 -07:00
Larry Shaffer
a37c577fdd Fix 'geos_c.h not found' build error on Mac 2014-02-24 17:02:41 -07:00
Juergen E. Fischer
5a25570b7e indentation update 2014-02-23 23:27:03 +01:00
Martin Dobias
fafa58ed24 Merge remote-tracking branch 'origin/master' into threading-revival
Conflicts:
	src/core/qgspallabeling.cpp
	src/core/qgsrenderchecker.h
	src/core/qgsvectorlayer.cpp
	src/core/symbology-ng/qgslinesymbollayerv2.cpp
	src/core/symbology-ng/qgssymbollayerv2.cpp
	src/providers/wms/qgswmsdataitems.cpp
	tests/src/core/testqgsblendmodes.cpp
2014-02-23 20:12:50 +07:00
Etienne Tourigny
7399789f85 add files for raster histogram (Int16 and Float32) 2014-02-22 19:13:54 -03:00
Etienne Tourigny
ba3c3df39b disable raster histogram test until rendering testing is improved (also this test depends on qwt version 5 vs. 6) 2014-02-22 17:42:03 -03:00
Juergen E. Fischer
d12e08ed8b fix PyQgsBlendModes test (followup da1ebc269) 2014-02-22 07:42:55 +01:00
Larry Shaffer
295854ad48 Update labeling unit tests control image and PAL_SUITE test suite generation 2014-02-21 22:54:18 -07:00
Larry Shaffer
0a9b857177 Add label svg background unit tests and control images 2014-02-21 22:50:04 -07:00
Larry Shaffer
7e33fdec37 Fix #9057, offset value misplaced when exporting composer to image
- Add unit test and control images
2014-02-21 22:47:34 -07:00
Larry Shaffer
ef7a036c96 Add svgSymbolsPath to Python unit test utilities (for defining paths without app instance) 2014-02-21 22:40:38 -07:00