artemp
60c79d6614
image unit test - make test image 16x16 + add more checks
2015-09-16 11:47:36 +01:00
artemp
c1301fa142
image unit test - add copy (deep/shallow) + move tests
2015-09-16 11:37:46 +01:00
artemp
8c8ea74a63
update unit test
2015-09-16 10:15:21 +01:00
Artem Pavlenko
c4e0516ba6
Merge pull request #3061 from mapycz/colorize-alpha
...
colorize-alpha: add support for transparent colors
2015-09-15 16:11:28 +01:00
Dane Springmeyer
b2d08ea4ea
re-enable zero allocation image interface - refs #3069
2015-09-14 16:45:58 -07:00
Jiri Drbalek
6f0b4d438c
colorize-alpha: add support for transparent colors
2015-09-11 11:31:08 +00:00
Artem Pavlenko
282bdf178c
Merge pull request #3058 from mapycz/colorize-alpha-fix-color-value-normalization
...
colorize-alpha: fix normalization of color components
2015-09-08 12:50:46 +02:00
Jiri Drbalek
79f4e3ac8f
colorize-alpha: fix normalization of color components
2015-09-08 10:14:20 +00:00
Jiri Drbalek
72222efad7
scale-hsla image filter: unlimit parameters
2015-09-03 11:33:53 +00:00
artemp
0ba2e3f3f6
update svg tests
2015-08-17 16:53:42 +02:00
artemp
ebf4d66900
Merge branch 'master' into image_filters
2015-08-12 11:27:59 +02:00
artemp
751abba262
add parse_jpeg_quality method + uint test parsing jpegXX and jpeg:quality=XX options
...
ref #3024
2015-08-12 10:29:57 +02:00
Blake Thompson
0b6b11b9cf
Added the ability for filter_image to throw properly with bad input and added the ability for a new image to be returned
2015-08-11 19:22:09 -05:00
Blake Thompson
a492028f25
Initial commit of changes for image_filters so they can be called outside of agg renderer
2015-08-07 15:54:39 -05:00
Blake Thompson
161469ed63
Fixed an issue with fields over size of int32 in OGR plugin and added tests to cover this situation.
2015-08-05 13:47:17 -05:00
Blake Thompson
f5cf669736
Updated SVG unit test so that it no longer writes to std err. closes #3007
2015-07-31 12:31:54 -05:00
artemp
42bf2303e0
fix parse_double_optional_percent grammar and update tests
2015-07-31 11:35:02 +02:00
artemp
5b04764757
SVG - update tests to work with marker_cache's strict policy
2015-07-31 10:47:30 +02:00
jakepruitt
0cc524aa1c
Adding percentage for linear gradient
2015-07-30 17:35:30 -04:00
jakepruitt
6f6af87a43
Write invalid parse_string test
2015-07-30 17:05:19 -04:00
jakepruitt
9549a1cc01
Adding tests for radial gradients with percentages
2015-07-30 16:46:27 -04:00
jakepruitt
8982938270
Adding test for gradient xlink:href
...
- refs #3005
2015-07-30 12:48:23 -04:00
artemp
f8fd60dc69
remove libxml includes and init calls
2015-07-30 13:13:53 +02:00
artemp
f75921c7ca
update test + data
2015-07-30 11:09:08 +02:00
jakepruitt
b4bc16751c
Adjusted error message logic for logging path ids
2015-07-29 22:37:30 -04:00
jakepruitt
af27af4af2
Improving svg test coverage
...
- refs #3005
2015-07-29 22:26:28 -04:00
artemp
f3870cc8fe
update test
2015-07-29 16:09:51 +02:00
artemp
d05c13d849
unit test - cope with incorrectly encoded geometries
2015-07-29 15:42:53 +02:00
artemp
42c8da72e9
Merge branch 'master' into svg-parser-errors
2015-07-28 10:29:59 +02:00
Dane Springmeyer
e82de0109d
centralize plugin registration for unit tests
2015-07-27 15:35:00 -07:00
artemp
ec591c1ffa
add bogus stroke-width test
2015-07-24 11:05:58 +02:00
artemp
49d4beec59
fix typo
2015-07-23 15:16:08 +02:00
artemp
e496e24deb
add "Gradients apply to leaf nodes" test and update test data
2015-07-23 12:58:38 +02:00
artemp
158e4b7f87
add missing gradient definition test
2015-07-22 16:34:28 +02:00
artemp
626cb9f47c
add display=none test
2015-07-22 15:28:55 +02:00
artemp
7aa30a211e
SGV tests: <gradient> - update expected path data
2015-07-22 13:32:39 +02:00
artemp
9eadd48d7b
add tests for no-existing svg file + bogus color in fill
and stroke
2015-07-22 11:52:18 +02:00
artemp
f19ddf81ba
SVG - add gradient test (ref #2989 )
2015-07-21 10:35:21 +02:00
artemp
0625b90067
SVG unit test - add <line> test
...
(http://www.w3.org/TR/SVGTiny12/shapes.html#LineElement )
2015-07-20 17:44:47 +02:00
artemp
fb155a57cd
support compilers that can't construct tuple from initializer list
2015-07-20 17:16:35 +02:00
artemp
6a2d0b9ebf
started adding svg parsing tests to increase test coverage (work-in-progress)
2015-07-20 15:41:35 +02:00
artemp
c63e71acac
+unit test: feature_collections with extra properties
2015-07-17 17:43:04 +02:00
Dane Springmeyer
0145476ff7
only run geojson unit test if plugin was built
2015-07-10 12:34:18 -07:00
Dane Springmeyer
b54b2753a0
fixup geojson test
2015-07-10 12:10:46 -07:00
artemp
16e6db3281
add initial geojson unit test
2015-07-10 11:05:48 +02:00
Dane Springmeyer
153051d020
add test to ensure icu/harfbuzz shapers can be compiled
2015-07-08 23:28:38 -07:00
Blake Thompson
770d93b7cc
Fix situation where offset_converter might start off with an SEG_END from the vertex, therefore starting invalid processing. Tests added to confirm fix. Ref #2937
2015-06-30 22:23:44 -05:00
Dane Springmeyer
1eea7294ae
ensure tests pass with no plugins built
2015-06-30 17:04:48 -07:00
Dane Springmeyer
48eb4abedb
merge with master
2015-06-30 00:38:45 -07:00
Dane Springmeyer
15589c8568
pull in latest master
2015-06-22 13:51:09 -07:00
Dane Springmeyer
e4631f15ae
fix #2921
2015-06-22 13:43:07 -07:00
artemp
93937ca443
prefer STL containers - boost::unordered_map --> std::unordered_map
2015-06-18 11:01:16 +02:00
Blake Thompson
bd9e580cd8
Merge branch 'master' into offset
2015-06-16 11:50:04 -05:00
Dane Springmeyer
6a76f0fa31
fix variable shadowing
2015-06-15 20:41:51 -07:00
Dane Springmeyer
b2c85e0c65
fix a slew of -Wsign-conversion, -Wconversion, -Wunused-argument warnings
2015-06-15 20:41:51 -07:00
Dane Springmeyer
b355e65fe1
unit coverage of css_color_grammar converters
2015-06-15 20:41:48 -07:00
Dane Springmeyer
bb2e938302
Add unit test for safe_cast (aka saturated_cast) a clamping numeric_cast
2015-06-15 20:41:48 -07:00
Dane Springmeyer
2b02677cb5
Centralize memory/valgrind cleanup code
2015-06-15 20:41:46 -07:00
Dane Springmeyer
8e89b788df
Add a a few tests for set/get pixel - refs #2893
2015-06-12 00:12:28 -07:00
Dane Springmeyer
5465adc229
fix expected error message
2015-06-11 14:04:20 -07:00
Dane Springmeyer
84a0c49ec3
Avoid crashing if we try to read a png as a jpeg - closes #2903
2015-06-11 14:02:34 -07:00
Dane Springmeyer
352586e9d7
handle pj_transform HUGE_VAL results (aka inf)
...
- turns out pj_transform will not always return an error code for
failed transforms and may instead just set values as HUGE_VAL
- this commit handles this and calls it an error by return false
from forward/backward
Arguably if `point_count` > 1 some values might be correctly transformed
while others might be HUGE_VAL. For the purposes of Mapnik we will consider
any HUGE_VAL as an error because we have no way to handle partial failures.
2015-06-10 18:34:11 -07:00
Blake Thompson
75f7cb26bb
Reversed the offsets
2015-06-09 09:18:52 -05:00
Blake Thompson
42de75593d
Updated unit test to be correct
2015-06-08 20:32:21 -05:00
Blake Thompson
eb5ca2af87
Merge branch 'offset' of github.com:mapnik/mapnik into offset
2015-06-08 17:13:58 -05:00
Blake Thompson
7aa7860b65
Added tests to offset
2015-06-08 17:13:02 -05:00
Dane Springmeyer
583fbaec14
fix test compile if cairo is disabled
2015-06-06 12:30:56 -07:00
Dane Springmeyer
a38cc2aab6
disable tiff test on windows - closes #2838
2015-06-03 15:04:50 -07:00
Dane Springmeyer
e17505686c
fix compile - followup to #2880
2015-06-03 14:16:30 -07:00
Matt Amos
1778d19b22
Added headers required on Mac OS - not sure why not on Linux.
2015-06-03 15:56:37 +01:00
Matt Amos
b21ed59190
Add test for XML parser whitespace trimming behaviour.
...
This tests the at the XML parser trims whitespace from XML text
nodes. This was already the behaviour of the libxml2 parser, but
not the rapidxml parser.
Note that this makes #2878 pass for the rapidxml parser as well
as the libxml2 parser. It seems that Travis uses the rapidxml
parser only.
2015-06-02 17:50:08 +01:00
artemp
90a27abccb
catch and remove more spurious std::move's
2015-06-02 15:36:31 +01:00
artemp
df4226a825
remove spurious std::move's (clang - moving a temporary object prevents copy elision [-Wpessimizing-move])
2015-06-02 14:26:35 +01:00
Blake Thompson
ee551cd949
Removed vector tile strategy
2015-05-26 16:18:10 -05:00
Blake Thompson
3768702699
Updated unit tests
2015-05-26 16:03:25 -05:00
Blake Thompson
506d2f435f
Added vector tile strategy
2015-05-26 15:52:41 -05:00
Blake Thompson
611eb6e7a3
Changed from numeric casts to static casts
2015-05-26 15:52:41 -05:00
Dane Springmeyer
aae52dad2e
u_cleanup is called from unit/run.cpp already [skip ci]
2015-05-22 13:56:59 -07:00
artemp
9c9a7a06a0
unit test geometry - use appropriete std::string constructor ( file_io.get() doesn't guarantee to return null terminated C-string!)
2015-05-22 09:24:45 +01:00
Dane Springmeyer
d5e4197aa2
fixup webp test
2015-05-21 20:42:18 -07:00
Dane Springmeyer
c2e94c68a5
fix crash + add crashing testcase for #2842
2015-05-21 20:39:14 -07:00
Blake Thompson
2031215247
Renamed set_opacity to apply_opacity, reverted it to the old logic of set_alpha. Updated tests, clamping is now used.
2015-05-20 13:08:18 -05:00
Blake Thompson
b68d079255
Changed the name of the set_alpha and multiply_alpha to be set_opacity and multiply_opacity
2015-05-20 12:39:01 -05:00
Blake Thompson
25c6576fdd
Updated the way that multiply_alpha works, such that it is not clamped at the multiplier, but rather at the result of the multiplier and alpha.
2015-05-20 12:39:00 -05:00
Matt Amos
782a949543
Use approx when testing floating point approximate equality.
2015-05-18 22:53:11 +01:00
Matt Amos
818ede5b93
Ported box2d_test.py
2015-05-18 15:10:55 +01:00
Dane Springmeyer
2a1005c040
avoid warnings in geometry_equal test
2015-05-15 14:43:42 -07:00
Blake Thompson
3e24c5a417
Doh, fixing stupid C++ that I wrote after properly writing a unit test
2015-05-15 13:21:51 -05:00
Blake Thompson
90de0d65cb
Corrected errors in palette unit test and corrected logic in bounding box projection transform
2015-05-15 12:15:27 -05:00
Blake Thompson
cf68412ef1
Merge pull request #2814 from mapnik/feature/add_tests
...
Palette unit tests
2015-05-15 10:39:00 -05:00
Blake Thompson
22d70decd4
Palette unit tests
2015-05-15 10:37:52 -05:00
Dane Springmeyer
3ae6e49a2e
Merge pull request #2812 from mapnik/feature/add_tests
...
Adding tests and cleanup
2015-05-14 23:05:48 -07:00
artemp
5126491705
fix unit test
2015-05-14 12:08:14 +01:00
Blake Thompson
d1616737f2
Removed the mapnik type of 'byte' because it seemed sparsely used and simply providing data type should be easier as it is never going to change. Also added some tests around mapnik palette
2015-05-13 19:32:54 -05:00
Blake Thompson
f3abe7fc25
Added test coverage to image buffer
2015-05-13 16:50:31 -05:00
Blake Thompson
86b65146a7
Added more tests around image_any
2015-05-13 16:50:31 -05:00
Blake Thompson
deba4c114a
Added test coverage for image_any
2015-05-13 16:50:31 -05:00
Blake Thompson
cebbca16d4
Improved test coverage for image and image view
2015-05-13 16:50:31 -05:00
Blake Thompson
f2b26f5707
Initial commit for image unit test
2015-05-13 16:50:31 -05:00
Blake Thompson
166e606b71
Better tests to fully cover all cases
2015-05-12 15:01:17 -05:00
Blake Thompson
39428585f0
Added the rounding_cast utility, and added a scale_rounding_strategy to support this new casting type. Added tests for it
2015-05-12 14:36:29 -05:00
Blake Thompson
1dddfd17ef
Removed try catch around set_alpha, and just checked bounds. Added unit tests for image_view
2015-05-12 12:24:14 -05:00
Dane Springmeyer
41ad16f4d7
hello world plugin is now standalone at https://github.com/mapnik/hello-world-input-plugin - refs #2790
2015-05-11 17:07:33 -07:00
Blake Thompson
e44cdef805
Fix get_pixel with image_view
2015-05-11 18:19:24 -05:00
Blake Thompson
ba0cc39046
Updated tests so that they use REQUIRE_THROWS
2015-05-11 15:51:50 -05:00
Blake Thompson
f54164da75
Changed the way that set alpha worked, renaming old method to multiply_alpha, added new set_alpha, that simply sets the alpha. Added protection for overflows and underflows. Added unit tests to cover all code
2015-05-11 13:12:13 -05:00
Blake Thompson
1ca5ae4446
Forgot to add unit test
2015-05-10 14:28:10 -05:00
Blake Thompson
fbfd6664bc
Added unit test for premultiply
2015-05-08 20:19:50 -05:00
Dane Springmeyer
126c777c8d
shuffle around boost/geometry usage in headers to reduce compile time
2015-05-05 22:04:49 -07:00
Dane Springmeyer
ad2e8afb55
fix failing C++ tests that depend on test data - closes #2787
2015-04-30 06:57:47 -07:00
Dane Springmeyer
b730d437f7
pj_clear_initcache is only available in proj >= 4.8
2015-04-29 18:00:47 -07:00
Dane Springmeyer
f861df2130
fix compile on windows (M_PI) [skip ci]
2015-04-29 15:58:13 -07:00
Dane Springmeyer
66ad95cbbe
remove extra unit test print [skip ci]
2015-04-26 23:32:37 +02:00
Dane Springmeyer
d9ea4e9b6e
ensure clean valgrind run
2015-04-26 23:26:11 +02:00
Dane Springmeyer
d83afb3c75
pull data from test-data repo
2015-04-26 20:23:02 +02:00
Dane Springmeyer
8a64d6aeba
drop useless test (should be covered by visual tests)
2015-04-26 01:16:25 +02:00
Dane Springmeyer
c4f497be0a
drop old cpp_tests folder [skip ci]
2015-04-25 22:13:26 +02:00
Dane Springmeyer
edf7616b19
reorganize c++ tests
2015-04-25 22:08:12 +02:00