Commit graph

1676 commits

Author SHA1 Message Date
Andrea Canciani
b661bc8712 test: Update ref images for radial tests
Pixman master now rasterizes radial gradients following the PDF
specification (see section 8.7.4.5.4 of PDF 32000-1:2008).
2010-10-12 20:13:53 +02:00
Adrian Johnson
dd96c4accb Refresh ft-show-glyphs-positioning pdf ref image
The new image is more accurate as a result of the fix in 165a14b5
2010-10-08 23:05:42 +10:30
Behdad Esfahbod
b50d9d0783 Fix typo 2010-10-07 17:41:36 -04:00
Andrea Canciani
425e68590b test: Remove old html infrastructure
The new dynamic html page supersedes the old make-generated static
html page.
2010-10-07 23:09:13 +02:00
Andrea Canciani
f29e7d155f test: Add a new test result html page
This page uses JavaScript to parse test log files and create the
test table according to the results. It also allows dynamic selection
and hiding of rows/columns based on a chosen parameter and table
structure change, by dragging a field from rows to columns and vice
versa.

Left click selects the cells with the chosen parameter-value association.
If these cells are exactly the only show cells, it hides them and shows
all the other ones, instead.

Right click inverts the visibility of the cells with the chosen
parameter-value association.

When some rows are hidden, the PASS/NEW/FAIL/XFAIL/CRASH counters show
both the currently shown test case count and the total count, if they are
different: "23[62]" means that there are 62 test case in that category,
but only 23 are currently visible.

Dragging a field from the row (or column) header to the column (or row)
header rebuilds the table to have that field along the columns (or rows),
updating PASS/NEW/FAIL/... counters and showing the whole table again.

Test names are hyperlinks to the test log.
Images are hyperlinks to themselves.
2010-10-07 23:09:13 +02:00
Andrea Canciani
4e064b3a32 test: Make tests run in natural order
When tests are registered, they are prepended to a list.
Reverting the list, we get a list whose order is the same as that
of registration.
2010-10-07 23:09:13 +02:00
Chris Wilson
05faebd584 test: Add a8-clear
Reported-by: Jeremy Moles <jeremy@emperorlinux.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-09-29 13:57:04 +01:00
Andrea Canciani
291876ad34 test: do not leak resources
Silence some leak reports by check-valgrind.
2010-09-10 07:34:43 +02:00
Andrea Canciani
ca775cbf5a test: do not leak resources
Silence two leak reports by check-valgrind.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-09-09 17:24:13 +02:00
Chris Wilson
04623ef9df test: Add subsurface-outside-target refs to REFERENCE_IMAGES 2010-09-06 13:15:55 +01:00
Chris Wilson
d5b2c2a12e test: Rename clip-fill-*-unbounded.image16 ref to match REFERENCE_IMAGES 2010-09-06 13:11:22 +01:00
Benjamin Otte
f54c51e75c test: Add subsurface-outside-target
This test defines the behavior of subsurfaces when they are created to
be bigger than their target.
2010-09-01 03:16:22 +02:00
Andrea Canciani
cd52378ae6 test: Update linear-gradient-large ref image
Make linear-gradient-large ref image match xlib gradients (both on nvidia
and on macosx) and pixman gradients (when patched to compute the linear
gradients using floating point math).
2010-08-10 19:42:14 +02:00
Krzysztof Kosiński
a7762e3d65 tests: Add linear-gradient-large test
Shows large rounding errors in Pixman when computing gradients. Added as
a test to Cairo to catch similar issues in other backends.

https://bugs.freedesktop.org/show_bug.cgi?id=29470
2010-08-10 18:38:59 +02:00
Andrea Canciani
ae2b7b13cd pattern: Simplify degenerate linear pattern to solid colors
Degenerate linear patterns are considered clear if they have
EXTEND_NONE, the average of the first and the last stop if they are
EXTEND_PAD, the weighted average of the stops (based on the size of
the interpolation range in which they are active, just like integrating
over the whole interpolation range and taking the average) if they are
EXTEND_REPEAT or EXTEND_REFLECT.

Fixes degenerate-linear-gradient
2010-08-08 12:07:08 +02:00
Andrea Canciani
8f38d2aa29 test: improve clip-*-unbounded tests
Merge clip-*-unbounded tests and add self-intersections to the paths
that are drawn. This exposes a bug in the unbounded fixup code in quartz.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-08-06 19:36:37 +02:00
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