Commit graph

1632 commits

Author SHA1 Message Date
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
Chris Wilson
299263f8c9 test: Disable tests that are too slow to run by default.
Introduce a slow mode [-s] to the runner, and add "slow" to the
requirements for the very long running tests like the coverage stress
tests.
2010-06-12 14:06:06 +01:00
Chris Wilson
53139261c7 test: Use exact matching on test names by default.
Specifying individual tests to run is more common than using a group
chosen from a keyword, so change the default matching mode and introduce
'-k' to select by keyword.
2010-06-12 14:06:06 +01:00
Chris Wilson
97288b0859 test: More minute geometry exercised by partial-coverage.
Moving beyond the capabilities of cairo...
2010-06-12 14:06:06 +01:00
Chris Wilson
4e3ef57bc8 test: More coverage coverage.
A couple of different shapes that aim to test the tessellation side of
the rasterisers more... And worryingly there does seem to be an
unexpected systematic error.
2010-06-12 13:30:24 +01:00
Chris Wilson
7440fc07f7 test: xlib ref image refresh 2010-06-11 21:29:38 +01:00
Chris Wilson
1098e203dc test: pdf ref image refresh 2010-06-11 18:07:28 +01:00
Chris Wilson
1c91d019c5 test: ps ref image refresh.
Update to gs-8.71 and some additional reference images for the new tests.
2010-06-11 17:48:36 +01:00
Chris Wilson
f74b11415a test: Use a group to render PDF correctly using poppler.
In order to support blend modes, we need to use a clear background
whilst rendering the PDF, which inspired the use of DEST_OVER to avoid
having to render to an intermediate surface. However, the adjunct of
using subpixel text means that we cannot simply using the alpha channel
as the sole mask and so need to render to an intermediate and paint it
over an opaque background.
2010-06-11 14:12:23 +01:00
Chris Wilson
7f227ec8d3 Revert "test/pdf2png: Don't use DEST_OVER as poppler starts using subpixel text."
This reverts commit 506b2ebe71.

We have conflicting requirements here. In order to support extended
blend modes correctly we need to use DEST_OVER, at the expense of
supporting subpixel text. More thought required.
2010-06-11 12:54:15 +01:00
Chris Wilson
c761e0c5bb test: Restrict the coverage tests to raster targets.
Typo inside the requirements failed to prevent the tests running on the
vector backends.
2010-06-11 12:40:36 +01:00
Chris Wilson
b49c944fe4 test: Add a convenience script to disable the screensaver when testing
If the screensaver activates, it can cause failures when attempting to
render into an xlib window, so inhibit if we know how.
2010-06-11 12:38:17 +01:00
Chris Wilson
506b2ebe71 test/pdf2png: Don't use DEST_OVER as poppler starts using subpixel text.
Using DEST_OVER in this form to paint the background white fails in the
presence of subpixel geometry (particular text), so remove the hack and
simply paint the background white prior to passing the surface to
poppler. KISS.
2010-06-11 12:07:21 +01:00
Chris Wilson
cf426bce8e test: Add a simple coverage test.
This test case should be much clearer than half-coverage over what it
purports to actually test. In each pixel, it draws a single geometric
primitive that coverages a known percentage of the pixel and then we
measure how close the rasterisers are to that ideal.
2010-06-11 10:05:09 +01:00
Chris Wilson
bd3d9ef3d1 test: Distinguish tests that throw an error from a normal fail.
Hitting an error in a test case is almost as bad as crashing, and the
severity may be lost amidst "normal" failures. So introduce a new class
of ERROR so that we can immediately spot these during a test run, and
appropriately log them afterwards.
2010-06-11 09:14:16 +01:00
Chris Wilson
b0056a86b4 test: Exercise partial coverage some more.
Add some overlapping triangles (coarse enough for them to be resolved
using Cairo's 24.8 fixed point without loss of precision) to exercise
handling of overlapping subpixel geometry.
2010-06-10 18:30:26 +01:00
Andrea Canciani
7a024bc206 test: exercise ps crash with single stop gradients
PS crashes only when using the source operator, as it will otherwise
fallback to rasterization of the gradients.
2010-06-10 16:07:42 +02:00
Chris Wilson
ef5f9b5c61 test: Update partial coverage.
Gah, no wonder the output looked wrong for the triangles, they only
covered half the pixel. So separate triangles into two cases.
2010-06-10 14:18:11 +01:00
Chris Wilson
1349728d1e test: Add partial coverage.
Another experiment in measuring consistency of rasterisation stratagems
across the backends.
2010-06-10 13:13:12 +01:00
Chris Wilson
486118361a test: Fix half-coverage colouration.
Hmm, red over red makes the test pointless. The test still remains of
highly dubious quality, as it primarily serves as a rendercheck more
than a test of Cairo. The best hope for this test is that it inspires a
better one.

And incorporate the notes made by Joonas.
2010-06-10 12:05:41 +01:00
Chris Wilson
85af0ec374 test: Add half-coverage to exercise the rasteriser with subpixel geometry. 2010-06-09 10:34:06 +01:00
Benjamin Otte
72bf1a5367 Update my copyright notices to preferred version
No more copyright headers containing my name.
2010-06-08 22:23:12 +02:00
Andrea Canciani
10d95c7020 test: add/update reference images
Add missing reference images and update one-stop references according
to current subset policy (outside the defined range, the gradient
is clear).
2010-06-08 20:53:31 +02:00
Andrea Canciani
dd0f887271 test: fix typo 2010-06-08 16:42:44 +02:00
Andrea Canciani
9b88b5dce5 test: add degenerate gradient and single stop tests
Add tests for degeneratate linear gradients (with start point equal
to the end point), degenerate radial gradients (start radius and end
radius equal to zero, same start and end circle) and gradients (both
linear and radial) with just a single stop.
2010-06-08 16:37:01 +02:00
Andrea Canciani
465ceb330e test: improve copyright notices
Conform copyright notices to a1-image-sample.c
2010-05-16 09:41:12 +02:00
Andrea Canciani
e8bc25fdb2 test: add linear-gradient-extend and radial-gradient-extend
Check that constant gradient to solid color optimization are only
applied if the extents permit it.
2010-05-14 22:26:40 +02:00
Benjamin Otte
acfbf95a0c test: Make global variables in new test static
It seems there's no gcc flag that warns about this.
2010-05-13 15:17:24 +02:00
Benjamin Otte
ee32dfb3de test: Add a test for various zero mask operations 2010-05-13 12:11:05 +02:00