Commit graph

1900 commits

Author SHA1 Message Date
Adrian Johnson
3d22902fa3 Add PDF ref images for the smask tests
These tests render correctly in acroread 8.1.
2008-04-06 20:38:41 +09:30
Carl Worth
14b056945c Update smask-text reference image
It appears the reference image wasn't generated on a gold-standard
machine, (and yes, the gold standard is, *ahem* whatever happens
to match what Carl's machine does---eventually we'll make the test-
based tests less picky about system configuration like this).
2008-04-06 00:34:59 -07:00
Chris Wilson
3a89bf4a1d [test] Remove some redundant evals from the summary.
In a couple of places we used eval to execute a simple assignment -
complete overkill.
2008-04-05 22:06:34 +01:00
Chris Wilson
fc0a2988cd [test] Disable jobserver with make check.
make -j check has the unfortunate side-effect of performing the summary
before the TESTS have completed, both hiding in the stream of test
output and making it useless. Forcibly disable the jobserver so that the
summary is always last at the expense of not compiling the tests in parallel.
2008-04-05 22:06:34 +01:00
Chris Wilson
93536bf3ac [test] Summarise failures per backend.
Enhance the test failure summary to list the tests that failed per
backend.
2008-04-05 09:31:22 +01:00
Carl Worth
89567f9278 Add new filter-bilinear-extents test
This test exercises code that computes the extents of a surface
pattern with CAIRO_FILTER_BILINEAR, (where the filtering
effectively increases the extents of the pattern).

The original bug was reported by Owen Taylor here:

    bad clipping with EXTEND_NONE
    http://bugs.freedesktop.org/show_bug.cgi?id=15349
2008-04-04 18:28:23 -07:00
Chris Wilson
a4f94624b2 [test] Add bilevel image test case.
Add a simple test to exercise the embedding of an image with a bilevel
alpha channel into a postscript level 3 document.
2008-04-04 15:56:22 +01:00
Chris Wilson
a74db7e7bc [test] Exercise "soft" masks.
PDF has a concept of "soft" masks, for which it is able to construct a
mask out of PDF drawing operations. These tests exercise constructing
various masks using the high level drawing operations.
2008-04-04 13:40:37 +01:00
Adrian Johnson
6192001816 Add PS reference image for ft-show-glyphs-table 2008-04-04 19:26:36 +10:30
Carl Worth
8a78760f15 Add new ft-show-glyphs-table test to exercise recent glyph positioning bug fix
Interestingly, this test case does demonstrate that cairo-pdf
is fixed, (where without commit f6509933a4 the Y positions
of the glyphs were inverted); however, cairo-ps is failing
with this test, (all the glyphs are ending up on top of each
other).
2008-04-03 17:12:14 -07:00
Chris Wilson
7901eb29ef [test] Add a1-mask.
Add a variant of the a8-mask test case that exercises the FORMAT_A1 code
paths instead.
2008-04-03 15:41:31 +01:00
Chris Wilson
048160d44c [.gitignore] Add test/stroke-image 2008-04-03 15:41:31 +01:00
Chris Wilson
b3a70629f8 [test/text-transform] Fix pattern leak.
Add missing cairo_pattern_destroy.
2008-04-02 10:50:48 +01:00
Carl Worth
d09b0394d5 Add some reference images that were missing from the distribution list 2008-04-01 14:11:08 -07:00
Vladimir Vukicevic
56cabc352e [quartz] Update Quartz test reference images 2008-04-01 13:04:08 -07:00
Carl Worth
e9adba9a57 Update ps-specifc reference image for ft-text-vertical-layout-type1
Presumably this minor change happened due to a recent fix in
cairo-ps glyph positioning.
2008-03-31 12:15:06 -07:00
Adrian Johnson
a30ed53a1c Add stroke-image PS/PDF ref images 2008-03-30 00:13:35 +10:30
Adrian Johnson
a729f27f3c Add clip-operator PS/PDF rgb24 ref images 2008-03-30 00:07:05 +10:30
Adrian Johnson
9058b9260a Add operator-source PDF ref images
Required due to gradient rendering differences between poppler and
cairo.
2008-03-29 23:49:51 +10:30
Adrian Johnson
53d1a4b0dc Update operator-source PS ref images 2008-03-29 23:03:41 +10:30
Carl Worth
af8928fa8b Add svg-specific reference image for ft-show-glyphs-positioning test
There was no failure here, just minor rasterization differences.
2008-03-26 14:52:09 -07:00
Carl Worth
fbab4bbb06 Update clip-operator and operator-clear reference images
There were legitimate bugs in the ps and pdf backends for these
tests, (particularly with the row of glyphs), but these bugs
were recently fixed with:

commit d89edde84d
Author: Vladimir Vukicevic <vladimir@pobox.com>
Date:   Tue Mar 4 00:15:46 2008 -0800

    [meta] always copy glyph array before passing to _cairo_surface_show_glyphs

and we just failed to notice the fix at the time.
2008-03-26 14:52:09 -07:00
Carl Worth
75972167a2 Use floating-point offsets for color stops
Previously we were using the cairo_fixed_t type which meant we've
historically only been using 16 bits of precision for these offsets,
and recently only 8 bits. Meanwhile, all manipulatons of offsets
have been in floating-point anyway, so we might as well store them
that way.

This change also prevents a rendering regression introduced with the
24.8->16.16 change betwen snapshots 1.5.10 and 1.5.12 .

This change affected gradient-rendering details for the clip-operator
and operator-source tests, so the corresponding reference images are
updated here.
2008-03-26 14:52:09 -07:00
Vladimir Vukicevic
ae143d779b [quartz] When stroking with an image source, use the right CTM for the image
Since the CTM was modified for the stroke transform, we need to reset
it before calling ConcatCTM for the source transform.
2008-03-25 11:17:57 -07:00
Carl Worth
ee3981fb92 Add new text-transform test
Previously, the test suite wasn't supplying any coverage of transformed
text rendering.
2008-03-24 16:26:28 -07:00
Adrian Johnson
184d9cbf9c Update REFERENCE_IMAGES with PS ref images
for finer finer-grained-fallbacks.
2008-03-24 12:36:37 +10:30
Adrian Johnson
2ad3915797 Add PS reference images for finer-grained-fallbacks test 2008-03-24 12:32:07 +10:30
Adrian Johnson
179ab7d286 Add finer-grained-fallbacks test
This reproduces the bug in PS/PDF/Win32-printing where an unsupported
operation that is off the page causes an unsupported operation
assertion in the backend.
2008-03-24 11:43:29 +10:30
Adrian Johnson
c459932482 Update PS reference images
Some of the text tests require new PS specific reference images as a
result of the PS glyph positioning fix.
2008-03-21 18:12:03 +10:30
Adrian Johnson
f3a5f75701 Add PS/PDF ref images for ft-show-glyphs-positioning 2008-03-21 16:34:01 +10:30
Adrian Johnson
8348668452 Add ft-show-glyphs-positioning test
This demonstrates the glyph positioning bug in the PS backend.
2008-03-21 16:14:56 +10:30
Carl Worth
f4d4d7b3d0 Cleanup up png-test.png file in 'make clean' 2008-03-20 16:13:28 -07:00
Carl Worth
191440101e Fix the REFERENCE_IMAGES list, (like always before a snapshot) 2008-03-20 12:38:26 -07:00
Carl Worth
c91a2a2e80 Track minor change in pixman filtering sample location
This change in reference image was triggered by the following commit
in the pixman library:

	commit f2d8a5caa63596739b4dc47c00daaaafd9f522e2
	Author: Søren Sandmann <sandmann@redhat.com>
	Date:   Mon Mar 10 23:41:52 2008 -0400

	Add rounding epsilon for NEAREST filter after transformation, not before.

This hasn't appeared in a pixman release yet. So for now, getting
correct results is a matter of "use latest pixman". Soon we'll
have a new pixman release and we'll make cairo depend on that.
2008-03-20 11:51:57 -07:00
Vladimir Vukicevic
1ab804891b [quartz] Additional test reference images for quartz 2008-03-17 17:37:24 -07:00
Adrian Johnson
8238a9fd4f Add stroke-ctm-caps to .gitignore 2008-03-15 22:08:52 +10:30
Adrian Johnson
2bd15d080c Add PS reference image for stroke-ctm-caps 2008-03-14 19:46:15 +10:30
Vladimir Vukicevic
4cc93881d9 [test] Add testcase for previous stroker regression fix
Add Adrian's original testcase for reproducing the stroker device
vector issue.  (b4f518f917)
2008-03-13 17:30:59 -07:00
Vladimir Vukicevic
b4f518f917 Correctly pass the device-space vector through to stroker
Part of the earlier optimization caused the wrong slope to be used for
some computations; this passes the correct slope vector down to
_compute_face.
2008-03-13 15:37:57 -07:00
Vladimir Vukicevic
091df2c59b [quartz] properly honor text antialiasing modes in show_glyphs 2008-03-08 15:16:05 -08:00
Vladimir Vukicevic
869942a97e [quartz] some more quartz ref images 2008-03-07 16:55:47 -08:00
Vladimir Vukicevic
2e33d5f57b [quartz] Update a bunch of reference images
Generated with Bitstream Vera font family installed, using ATSUI
font backend.
2008-03-07 16:46:53 -08:00
Chris Wilson
11a2444ec8 [cairo-png] Support generating CAIRO_FORMAT_RGB24 from PNGs.
If the PNG does not have an alpha channel, then create an opaque image.
2008-03-04 09:31:21 +00:00
Chris Wilson
b181f40949 [test/a8-mask] Check negative strides as well.
Check that we also allow surfaces to be created using a negative stride.
2008-03-04 09:31:20 +00:00
Carl Worth
e7e4a03dd3 get-path-extents: Fix APPROX_EQUALS to round values on both sides of the comparison 2008-02-28 16:39:42 -08:00
Carl Worth
602489b150 get-path-extents: Use APPROX_EQUALS instead of EQUALS for text path tests
This is done grudgingly due to freetype rounding the coordinates
of the extents when hinting is enabled.
2008-02-28 16:33:51 -08:00
Carl Worth
50a6fe1a2a Remove unnecessary cairo_set_tolerance call from get-path-extents test 2008-02-28 16:32:55 -08:00
Carl Worth
4cc174f72f Mark the big-line test as XFAIL 2008-02-28 15:41:36 -08:00
Carl Worth
5d0bc97b20 Fix incorrect reference images for big-line test
I mistakenly generated the original reference images with
a 16.16 version of cairo, (which manifests a different
buggy behavior than does the current 24.8 cairo).
2008-02-28 15:35:46 -08:00
Larry Ewing
307a7448ea Add big-line test showing a 24.8 failure 2008-02-28 15:02:23 -08:00