Commit graph

2310 commits

Author SHA1 Message Date
Benjamin Otte
9f33f8453b configure: Disable tee backend by default
We don't want to enable it by default when nobody uses it.
2010-07-30 22:27:27 +02:00
Benjamin Otte
9f4d677e2a tee: Move definitions into separate header 2010-07-30 22:27:08 +02:00
Karl Tomlinson
108b1c7825 clip: consider gstate target extents in _cairo_gstate_copy_clip_rectangle_list
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=29125

To be consistent with _cairo_gstate_clip_extents, the context's clip
should be intersected with the target surface extents (instead of only
using them when there is no clip).

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-07-17 11:32:02 +01:00
Karl Tomlinson
b79ea8a6ca clip: consider all_clipped in _cairo_clip_get_extents
If the gstate clip in _cairo_gstate_int_clip_extents() has all_clipped
set (and path NULL), then it returns the gstate target extents instead of
an empty rectangle.  If the target is infinite, then it says the clip is
unbounded.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=29124
Tested-by test/get-clip

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-07-17 11:30:51 +01:00
Karl Tomlinson
6a51159013 test: return CAIRO_TEST_FAILURE from get-clip preamble on failure
https://bugs.freedesktop.org/show_bug.cgi?id=29120
2010-07-17 11:30:35 +01:00
Karl Tomlinson
33ac203587 test: use the surface size expected in get-clip phase "No clip set"
https://bugs.freedesktop.org/show_bug.cgi?id=29121
2010-07-17 11:22:28 +01:00
Chris Wilson
8546a87788 test: Add partial-clip-text
This exercises a bug found by Igor Nikitin:

  https://bugs.freedesktop.org/show_bug.cgi?id=29008
2010-07-12 16:33:38 +01:00
Chris Wilson
01380f3a56 test: Missing REFERENCE_IMAGES 2010-07-12 11:50:42 +01:00
Chris Wilson
459b8ae660 Make distcheck happy. 2010-07-12 11:05:57 +01:00
Andrea Canciani
d56b171802 test: Add halo quartz reference images
When quartz-font is enabled, halo and halo-transform fonts have a
different shape.
2010-07-12 10:36:24 +02:00
M Joonas Pihlaja
9107895789 test: Add comments explaining the bug in bug-seams.
Where two rasterization methods meet, havoc occurs.
2010-07-12 11:03:15 +03:00
M Joonas Pihlaja
fca8977219 build: Rework pthread detection.
Use two levels of pthread support: a minimal level used to
build cairo itself, and a full level to build threaded apps
which want to use cairo.  The minimal level tries to use
pthread stubs from libc if possible, but falls back to the
full level if that's not possible.  We use CFLAGS=-D_REENTRANT
LIBS=-lpthread to find a real pthread library since that seems
to work on every unix-like test box we can get our hands on.
2010-07-11 21:40:26 +03:00
Andrea Canciani
fb03eba44f test: Add quartz functions to api-special-cases test 2010-07-08 20:06:08 +02:00
Andrea Canciani
59aab0bdc2 test: fix typo 2010-07-08 20:05:13 +02:00
Benjamin Otte
82de6336d8 test: Add note about how to fix failures to api-special-cases 2010-07-06 00:48:36 +02:00
Benjamin Otte
75f269b14e test: Add documentation to the api-special-cases test
Hopefully people add other backend APIs to the testsuite.
2010-07-06 00:41:12 +02:00
Benjamin Otte
fa07070496 test: Add xcb and xlib functions to api-special-cases test 2010-07-06 00:20:36 +02:00
Benjamin Otte
c4068fe941 test: Add ps, pdf and svg to the api-special-cases test 2010-07-05 23:14:33 +02:00
Benjamin Otte
b87be76bdf test: Add gl functions to the tests 2010-07-05 22:50:18 +02:00
Benjamin Otte
a9f30fc1f0 test: Add recording and tee surface functions to api-special-cases 2010-07-05 22:40:34 +02:00
Benjamin Otte
41abc0ca37 test: add PNG functions 2010-07-05 22:19:05 +02:00
Benjamin Otte
897eaa3e97 test: Add a non-error surface check
In that check, we call functions that require a specific surface type
with surfaces of a different type and check that they don't crash and
set the correct error.
2010-07-05 22:11:23 +02:00
Benjamin Otte
986ddf5652 test: add image surface functions to api-special-cases test 2010-07-05 22:03:42 +02:00
Benjamin Otte
72878d70ea test: Add a new test variant to api-special-cases test
This variant tests a (hopefully) inert error surface.
2010-07-05 21:01:56 +02:00
Benjamin Otte
cf0245c120 tests: Add a testcase that checks APIs work consistently
In particular, it checks that finished and surfaces in an error state do
not do bad things, like cause crashes.
So far this test only checks surface APIs, but it should be extended to
cover all APIs.

Please update this test when new APIs get added.

Motivated by https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/600622
2010-07-05 18:38:28 +02:00
Chris Wilson
0f1ff0daab test: Missing ref image. 2010-06-26 14:32:27 +01:00
Benjamin Otte
5907677667 test: improve push-group-path-offset to also catch the pop_group() case
cairo_pop_group() also trasnforms the path wrong, so we use cairo_fill()
to copy data instead of cairo_paint().

(Also, unbust the testcase.)
2010-06-25 14:08:49 +02:00
Benjamin Otte
a9b8d1a94e test: Add a new test for a bug with device-offset tests
All the credit for this one goes to make distcheck
2010-06-25 13:48:04 +02:00
Søren Sandmann Pedersen
aed744008d test: Fix typo in copyright statement 2010-06-24 05:39:00 -04:00
Soeren Sandmann
5c7e1dd690 test: Add an example of seams.
A pair of perfectly conjoint quads should not produce a seam when
accumulating into a temporary mask. Yet here is an example of where they
do!
2010-06-24 10:13:22 +01:00
Chris Wilson
f2645fa361 test: Add a1-bug
Capture a bug report from "cairouser" where a1 rasterisation is now
broken.
2010-06-17 15:46:50 +01:00
Chris Wilson
29b8cfd2b6 test/halo: Remove copied code.
How did that get there? I obviously ran the test to generate the output,
so where did it spring as it is the old version of the function?

From 16364768d7.

Mysteries will never cease.
2010-06-17 10:13:18 +01:00
Chris Wilson
c0dee7964c test: Add a1-rasterisation
Check the rounding criteria when rasterising.
2010-06-17 08:55:19 +01:00
Chris Wilson
16364768d7 test/halo: Transformation seems key to the bug... 2010-06-17 08:55:19 +01:00
Andrea Canciani
cb28e0bfeb test: correct options in getopt call
'k' was missing and 't' was present but unhandled. Options have been
reordered according to the "USAGE" ordering.
2010-06-17 08:42:39 +02:00
Chris Wilson
8689d75caa test/halo: Transformation seems key to the bug...
Only it is actually transformation of the result that is required in
order to magnify the effect to a detectable level.
2010-06-16 15:40:42 +01:00
Chris Wilson
71936a1f41 test/aliasing: Add a few more colour combinations.
In particular, compare red against its inverse, cyan. Etc.
2010-06-15 21:36:15 +01:00
Chris Wilson
56d06b088b test: Add an aliasing test case.
Just a simple test in drawing neighbouring edges and looking for the
effects of aliasing.
2010-06-14 22:58:38 +01:00
Chris Wilson
4b39f02bf7 test: Add halo
halo uses text_path + stroke + (fill | show_text)  to generate a "halo"
around the string. This is to try to replicate a bug described by Ian
Britten in the PDF backend where the rendering of the show_text looked
distorted compared to the stroke.
2010-06-14 20:40:56 +01:00
Andrea Canciani
b612a23086 test: update quartz ref images in makefile 2010-06-13 12:30:11 +02:00
Chris Wilson
0693af2328 test: Move all output below test/output/
make distcheck complains of remanents being left under test/ after a
clean, notably the files used to check the capabilities of a similar
surface and the fallback-resolution output.
2010-06-13 10:25:49 +01:00
Andrea Canciani
b6e16b8d29 test: quartz ref image refresh 2010-06-13 10:39:36 +02:00
Chris Wilson
fc372b1d9d test: Missing ref images 2010-06-12 16:51:22 +01:00
Chris Wilson
5b2f90bf53 test: Forgotten ref image. 2010-06-12 16:49:11 +01:00
Chris Wilson
cdd6f11716 test: Record the expected failure mode for partial-coverage-intersecting-quads
As the diagonals of the quad intersect below the limits of Cairo's fixed
point, we fail to take heed of the intersection.
2010-06-12 15:46:50 +01:00
Chris Wilson
3d72b4aa70 test/coverage: The comment was still wrong.
Writing comments is hard. I give in.
2010-06-12 15:34:07 +01:00
Andrea Canciani
e6d1b3a8ce test: update font family name
Update the name of the test font family to DejaVu, so that backends
unable to rely on fontconfig to match font names can find the correct
font anyway.
2010-06-12 16:30:56 +02:00
Andrea Canciani
3cb882d01b test: make test font family a define
In order to make it easier to change the test font family, add it
as a define in the global header and always reference the macro in
the tests.
2010-06-12 16:30:56 +02:00
Chris Wilson
b1e4df928f test/coverage: Refine comments
Joonas didn't like me putting incorrect labels in my comments. Said they
were misleading and worse than useless. Harsh.
2010-06-12 15:28:28 +01:00
Chris Wilson
968374b633 test/coverage: Add a comment describing the column_triangle geometry() 2010-06-12 15:14:17 +01:00