summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2018-10-17test: Free resources in pdf2pngBryce Harrington1-0/+2
Patch proposed by Bofa. Fixes: https://gitlab.freedesktop.org/cairo/cairo/issues/317 Reviewed-by: Bryce Harrington <bryce@bryceharrington.org>
2018-10-16Use HTTPS URLs for freedesktop.org domainsPaul Menzel6-7/+7
Run the command below suggested by geirha in ##sed@irc.freenode.net. git grep -l 'http://.*freedesktop.org' | xargs sed -i 's|http\(://\([[:alnum:].-]*\.\)\{0,1\}freedesktop\.org\)|https\1|g' Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
2018-10-16Use HTTPS URLs for cairographics.org domainsPaul Menzel11-12/+12
Run the command below suggested by geirha in ##sed@irc.freenode.net. git grep -l 'http://.*cairographics.org' | xargs sed -i 's|http\(://\([[:alnum:].-]*\.\)\{0,1\}cairographics\.org\)|https\1|g' Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
2018-09-14Normalize one more test image with minor gradient differencesBryce Harrington2-0/+0
For me, with this fix, the base image test cases now pass 100%, when running: make test TARGETS=image FORMAT=rgba Signed-off-by: Bryce Harrington <bryce@bryceharrington.org>
2018-09-14Normalize more test reference images with minor text rendering differencesBryce Harrington20-0/+0
The discrepancies in these tests appear to all be font rendering / antialiasing, probably due to algorithmic changes in Pixman. Some of these reference images were updated in Federico's recent patch, so the fact that they differ on my system may indicate there may be some system dependencies beyond just pixman, that can cause test result variation from person to person. Ideally, these would be isolated and the tests modified to not have such dependencies. Signed-off-by: Bryce Harrington <bryce@bryceharrington.org>
2018-09-05Normalize test reference images with minor text rendering differencesFederico Mena Quintero34-0/+0
[In testing, I was able to reproduce Federico's results for most, but not all, of the test images. There might be some additional platform-specific discrepancies that need ironed out, but this is a solid step forward in any case. Results for a quick run against just the image backend on my system: --bryce] Signed-off-by: Bryce Harrington <bryce@bryceharrington.org> Bryce Harrington <bryce@bryceharrington.org> Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
2018-09-05Normalize test images with minor gradient differencesFederico Mena Quintero15-0/+0
Signed-off-by: Bryce Harrington <bryce@bryceharrington.org> Bryce Harrington <bryce@bryceharrington.org> Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
2018-09-05Normalize extended-blend-mask.{argb32,rgb24}.ref.pngFederico Mena Quintero2-0/+0
I don't see how the old reference file could have been generated. Things I tried: * Using an old pixman (but it seems that the relevant code for Adobe extended blend modes has not changed?) * Using the Cairo version where the test was first introduced. * Changing the alpha value from .5 to something else. Signed-off-by: Bryce Harrington <bryce@bryceharrington.org> Tested-by: Bryce Harrington <bryce@bryceharrington.org> Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
2018-09-05test/extended-blend.c: Remove obsolete comments about buggy librsvgFederico Mena Quintero1-3/+0
The comment said that using CAIRO_OPERATOR_SOURCE for the background triggered a librsvg bug, but the relevant commit message does not even include a link to a librsvg bug. Also, changing it from OVER to SOURCE completely breaks these tests (the reference images don't match at all), so this comment is stale. Just remove it. Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
2018-06-13test: Use C comment syntax, not C++Bryce Harrington1-1/+1
2018-05-31Fix test compilation when font-config is disabledAlexandre Bique1-2/+5
Building cairo without font-config fails because test/font-variations.c was getting compiled without freetype2. Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
2018-04-02Cairo trivial typosUnknown3-3/+3
Found using `codespell -q 3 -I cairo-whitelist.txt` whereby whitelist contained: ``` amin iff lod writen ``` Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
2018-04-02pthread-same-source: Refresh reference imagesUli Schlachter1-0/+0
I already did the same thing in commit 3e22a8580a804. That commit added a GENERATE_REFERENCE mode that does not use threads and used that for generating the reference image. However, the above commit falls into the range between commits fb57ea13e04d and 3d94269bd4. The later commit reverts the earlier one, which changed the way that image downscaling works / is used. This means that the reference image that were generated back then were broken. Thus, regenerating the images is the right thing to do. Signed-off-by: Uli Schlachter <psychon@znc.in> Acked-by: Bryce Harrington <bryce@osg.samsung.com>
2018-04-02Skip font-variations test for missing fontsUli Schlachter1-1/+1
Signed-off-by: Uli Schlachter <psychon@znc.in> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
2018-01-19Fixup on previous commitBehdad Esfahbod1-0/+2
2018-01-18test: Fix compile with older FreeType without FT_Get_Var_Design_CoordinatesBryce Harrington1-0/+2
Extend earlier fix to the tests as well.
2018-01-03Merge branch 'font-variations'Behdad Esfahbod3-0/+200
2017-12-24Add test for error handling with broken PNG streamsUli Schlachter2-0/+88
Would-have-caught: https://bugs.freedesktop.org/show_bug.cgi?id=104325 Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-12-19Make the font-variations test passMatthias Clasen1-4/+4
Not sure what I was thinking - the test is checking the width axis, but the font we're using has only weight and contrast as axes...
2017-12-19[variations] Fix testBehdad Esfahbod1-11/+6
This does not exercise merging of variations from font-options and from pattern. Before this commit the code was more towards doing that.
2017-12-19[variations] Towards fixing testBehdad Esfahbod1-6/+13
2017-12-19Add a test for font variationsMatthias Clasen3-0/+198
This test checks that passing font variation settings via font options has the desired effect. It checks this by reading the effective axis values out of the FT_Face after creating a font with these options.
2017-11-10test: update some stale ref imagesAdrian Johnson8-0/+0
2017-11-09test: use CAIRO_MIME_TYPE_UNIQUE_ID with record-text-transformAdrian Johnson4-0/+16
The PS output from this test is > 100MB due to the duplicated images. Using CAIRO_MIME_TYPE_UNIQUE_ID reduces the PS output to 650k, runs considerably faster, and now produces correct output.
2017-11-09ps: use Reusable streams for forms in Level 3Adrian Johnson1-1/+1
to avoid emitting image data as strings
2017-11-09ps: use forms for surfaces with UNIQUE_ID mime typeAdrian Johnson1-2/+2
to ensure the surfaces are emitted only once. fixes mime-unique-id PS output
2017-11-09pdf: fix mime-unique-id jpeg attached to recording testAdrian Johnson1-2/+2
- Restructure the emit_surface code so that mime types are checked first. - Add a test parameter to emit_surface to test if the surface will be emitted as an image or recording instead checking the surface type as the attached mime may override this. - Mark surface as not clear when mime is attached to avoid optimizing away "clear" surfaces that have mime attached. - Include entire surface in analysis if mime attached (also fixes bug with calculating the extents CONTENT_COLOR surfaces)
2017-11-09Add mime-unique-id testAdrian Johnson2-1/+512
to check that PS/PDF embeds images with CAIRO_MIME_TYPE_UNIQUE_ID only once.
2017-10-22Add CCITT_FAX mime type for PDF and PS surfacesAdrian Johnson9-1/+57
This completes the full set of PDF/PS image filters allowing image data to be passed though without decompressing then recompresssing in a less efficient format. The difficulty with CCITT_FAX is it needs some decoding parameters that are not stored inside the image data. This is achieved by using an additional mime type CCITT_FAX_PARAMS that contains the params in key=value format.
2017-10-16fix unused function warningsAdrian Johnson1-1/+1
2017-10-15svg2png: remove unused headersAdrian Johnson1-2/+0
2017-08-29pdf: use explicit dest instead of named dest when 'internal' attribute is setAdrian Johnson1-1/+1
2017-08-26pdf: use link attributes instead of dest name for cairo_pdf_surface_add_outlineAdrian Johnson1-3/+9
In PDF outline targets are specified the same way as link targets so there is no need to restrict the target to dest names.
2017-08-19tests: fix bug in pdf-tagged-text that was introduced in 4790a36Adrian Johnson1-1/+1
2017-04-25quartz-font: Fix text-glyph-rangeAndrea Canciani2-0/+0
The index 0 is a legitimate index used for character codes that do not correspond to any glyph in the font. Instead, the API reserves 0xFFFF (kCGFontIndexInvalid) as the invalid index and defines 0xFFFE (kCGFontIndexMax = kCGGlyphMax) as the maximum legal index. Fixes text-glyph-range.
2017-04-25test: Add a test for characters in the SMPAndrea Canciani4-0/+57
Unicode characters in the Supplementary Multilingual Plane are encoded as surrogate pairs in UTF-16. This test tries to verify that backends do not perform UCS4 to UTF-16 conversion by truncation.
2017-01-05pdf: Fix wrong cairo_pdf_outline_flags_t item prefixKouhei Sutou1-3/+4
2016-10-07strndup is not avuilable with MSVCAdrian Johnson1-1/+5
2016-10-04fix compiler warningsAdrian Johnson1-0/+1
2016-10-01add test for PDF document interchange features such as tagged text and linksAdrian Johnson3-1/+400
2016-08-31Add example to run specific tests by name to the test/READMEdarxus@chaosreigns.com1-3/+4
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Uli Schlachter <psychon@znc.in>
2016-08-31Remove closed poppler bugs from test/READMEdarxus@chaosreigns.com1-39/+1
These bugs have all been closed resolved / fixed for years. Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
2016-07-05test: refresh text-rotate ref imagesAdrian Johnson3-0/+0
2016-07-05add test text-unhinted-metricsAdrian Johnson5-0/+74
Based on bug report in https://lists.cairographics.org/archives/cairo/2016-April/027334.html
2016-06-05Update ref imagesAdrian Johnson522-5/+5
ref images were creating using Debian Jessie 64-bit and latest poppler.
2016-06-05pdf: fix record-replay-extend test failuresAdrian Johnson9-0/+0
2016-06-05image: fix record-replay-extend test failuresAdrian Johnson3-0/+0
2016-06-05test: replay record surface with negative extents for each extend modeAdrian Johnson3-0/+228
image fails for repeat, reflect, and pad.
2016-06-05Fix PDF record-neg-extents test failureAdrian Johnson4-0/+0
Modify PDF surface to allow surface extents to have negative x, y. When emitting recording surfaces, set the surface extents to the recording extents.
2016-06-05Fix test failures when recording surface extents has negative x,yAdrian Johnson1-0/+0
Fixes record-neg-bounded-extents (image only) and recording-ink-extents.