summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2011-09-18Fix the number of parameters for cairo_os2_surface_set_size()Dave Yeo1-1/+1
test/error-setters.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-18test: refresh pdf mask ref imagesAdrian Johnson2-0/+0
2011-09-17test: Record the current status of radial-outer-focus as xfailChris Wilson3-0/+4
Debate rages as to the correct way to handle this. In some ways the current output is expected due to the numerical instability in handling the inner-focus-on-the-outer-circle. However, the result looks less than desirable so some solution (which may not be inside cairo per-se) is sought.
2011-09-16test: Refresh reference images for spans/trapsChris Wilson23-1/+6
I found a bug in my SSE2 lerp implementation which resolved quite a few failures.
2011-09-16test: Add a1-fillChris Wilson6-0/+71
Capture the bug report: https://bugs.freedesktop.org/show_bug.cgi?id=31604 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-16test: Add radial-outer-focusKrzysztof Kosinski2-0/+70
Numerical instability in the computation of gradients leads to random results. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40918
2011-09-16test: Update reference images for test-baseChris Wilson4-0/+0
Uli Schlachter spotted that I had create reference images with sharp edges for his tighten-bounds test case, exactly as if I had ignored unaligned clip boxes... Turns out I had removed the code to handle them...
2011-09-16test: refresh some pdf/ps refsAdrian Johnson12-0/+6
2011-09-16test: refresh some pdf/ps refsAdrian Johnson9-2/+4
2011-09-16test: Add bug-bo-ricotzChris Wilson6-0/+78
Exercises an assertion failure found by Rico Tzschichholz. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-16test: Hack cairo-test-trace to write at trace for all contextsChris Wilson1-10/+29
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-16test: add mask-alpha ps refAdrian Johnson2-0/+1
2011-09-16test: Replace xlib reference images with the traps referencesChris Wilson108-107/+0
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-16test: Use the test-traps as the reference images for xlib/xcbChris Wilson780-1/+778
The test-traps provides a reference implementation of the traps-compositor as used by xlib, so we can use it to generate the reference images as well. (Of course checking that test-traps is itself correct and only differs in the renderer! ;-) Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15test: Update couple of refs for the improved mono rasteriserChris Wilson2-0/+0
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15test: Update refernece dir for create-from-png-streamChris Wilson1-1/+1
It tries to load its reference image and fails because I moved it. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15test: Record the failure of recent freetype libraries for type1 vertical layoutChris Wilson2-0/+1
2011-09-15test: refresh clip-operator ref.pngChris Wilson3-1/+1
2011-09-15test: Fix reference image for unbounded operatorChris Wilson4-1/+1
Comparing against the baseline reference highlights the error in the previous ref.png. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15test: Mark some more raster-only testsChris Wilson3-3/+3
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15test: Write the individual test logs to output/Chris Wilson6-15/+20
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15test: Move all the reference images to their own directoryChris Wilson2225-2229/+2229
With over two thousand references images now, it is starting to make the test directory look cluttered! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15test: Complete set of baseline reference imagesChris Wilson759-0/+758
test-base basically implements rendering ala cairo-1.0 and so serves as a useful baseline for comparing enhancements and to regression test the core libraries.
2011-09-15test: Use the trapezoid reference image for random-clipChris Wilson1-0/+0
Oh dear it looks like we have a bug in image's polygon clipping.
2011-09-14test: Add ref image for random-clipChris Wilson2-0/+1
After applying geometric clip intersection, this is the acceptable result. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-14test: Fix ref images for a1-clip-*Chris Wilson4-0/+0
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-14test: Add the PS tigerChris Wilson7-5/+2422
The classic tiger's head; a simple example of a reasonably complex shape consisting of multiple layers. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-13Refresh some pdf/ps ref imagesAdrian Johnson31-7/+1
2011-09-12test: Update ref imagesChris Wilson200-7/+7
First pass after the recent turmoil in clip and antialias handling.
2011-09-12Introduce a new compositor architectureChris Wilson20-134/+338
Having spent the last dev cycle looking at how we could specialize the compositors for various backends, we once again look for the commonalities in order to reduce the duplication. In part this is motivated by the idea that spans is a good interface for both the existent GL backend and pixman, and so they deserve a dedicated compositor. xcb/xlib target an identical rendering system and so they should be using the same compositor, and it should be possible to run that same compositor locally against pixman to generate reference tests. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> P.S. This brings massive upheaval (read breakage) I've tried delaying in order to fix as many things as possible but now this one patch does far, far, far too much. Apologies in advance for breaking your favourite backend, but trust me in that the end result will be much better. :)
2011-09-09cairo-test-runner: don't leak argvPaulo Zanoni1-1/+7
If CAIRO_TESTS is set, argv will be replaced by a xmaloc'ed variable. We need to free it. This can be easily detected by running: CAIRO_TESTS=user-font make check-valgrind TARGETS=image Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-09test/README: add missing "S"Paulo Zanoni1-1/+1
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-09test: fix append_argv()Paulo Zanoni1-4/+10
When I ran "CAIRO_TESTS=a1-bug make test", no test executed because of a bug in append_argv(). The "olen" variable was assuming that we always only append a single argument to argv and the resulting argc was also wrong. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-02Introduce the cairo-missing libraryAndrea Canciani2-47/+6
The cairo-missing library provides the functions which are needed in order to correctly compile cairo (or its utilities) and which were not found during configuration. Fixes the build on MacOS X Lion, which failed because of collisons between the cairo internal getline and strndup and those in libc: cairo-analyse-trace.c:282: error: static declaration of ‘getline’ follows non-static declaration /usr/include/stdio.h:449: error: previous declaration of ‘getline’ was here cairo-analyse-trace.c:307: error: static declaration of ‘strndup’ follows non-static declaration ...
2011-08-30test: Add tighten-boundsUli Schlachter4-0/+174
In the spirit of the new big-{little,empty}-{box,triangle} tests, this test combines various paths. However, these paths are not only filled but also used for clipping, resulting in 120 different combinations. No backend currently succeeds the test. The reference image is a gimp-ination of the image and test-fallback results and thus certainly wrong. Feel free to fix. Additionally, this makes the xcb backend die with an ugly failed assert. Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-29test: Add big-empty-triangleChris Wilson5-0/+78
One last variant to make sure we handle the case of the disappearing unbounded triangle. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-29test: Add big-empty-boxChris Wilson5-0/+67
Another variant on big-little-box, to make sure we trim the extents before doing the empty unbounded fixup. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-29test: Add big-little-triangleChris Wilson5-0/+79
A variant on big-little-triangle to exercise the non-rectangular paths. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-26test: Add test case from bug-40410Krzysztof Kosiński4-0/+74
Exercises a case where we failed to fill a rectangle...
2011-08-26test: Add clip-mixed-antialiasChris Wilson4-1/+134
The wonders one sees when looking at webpages. Who knew people would be so inventive with clips? Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-20test: Add shape-general-concaveChris Wilson4-3/+90
A discussion that we've been having is the use of contours in filling, and for optimizing for convex contours in particular. A devious mind quickly generates a shape using a convex "contour" whose hull is larger than its area. This is due to the self-intersection of the "contour" which if properly excised causes the contour to be classed as concave. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-20test: Extend rotate-image-surface-paintChris Wilson4-0/+78
Apply two common clipping methods just to add a little bit of further complication. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-20test: Extend record-extend to exercise similar surface sourcesChris Wilson6-22/+94
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-20test: Add record-meshChris Wilson4-0/+168
Test capture and replay of mesh patterns. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-20test: Add big-little-boxChris Wilson5-0/+72
This exercises the bug https://bugzilla.mozilla.org/show_bug.cgi?id=668921 which is caused by a failure to tighten the extents after tessellating the path and the unbounded fixup is skipped as it is believed the path covers the whole area. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-20test: Add checkerboardChris Wilson4-3/+50
Simply tests the rendering of the checkerboard commonly used as a background in the test suite. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-18test: Add a test that maps a huge surfaceUli Schlachter4-0/+69
This test currently fails in the xcb backend if xcb-shm is enabled. Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-15Introduce cairo_mime_surface_tChris Wilson4-0/+176
The mime surface is a user-callback surface designed for interfacing cairo with an opaque data source. For instance, in a web browser, the incoming page may be laid out and rendered to a recording surface before all the image data has finished being downloaded. In this circumstance we need to pass a place holder to cairo and to supply the image data later upon demand. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-13test/xlib-expose-event: Be kinder to recording surfacesChris Wilson1-12/+15
And only create the source image once. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-13test: Add a couple of variants to line-width-overlapChris Wilson6-2/+83
The bug may be in only the fast-path, but future bugs may lie elsewhere. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>