summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2009-11-04[test] Add a test for all the pixman formatsyuvBenjamin Otte3-0/+119
The test works fine, eventual issues have been fixed on master reviously.
2009-11-04[test] Add "target=raster" to testBenjamin Otte1-1/+1
The test isn't useful on vector backends and fails there due to antialiasing issues.
2009-11-04[test] Add a test exposing bugs in XRenderCompositeBenjamin Otte3-0/+82
This test fills a slightly rotated surface slightly above the 0 line. This hits some corner cases in the XRenderComposite path. I discovered these issues while playing with video rendering onto the canvas in HTML5 (both Webkit and Mozilla have this problem). I used CAIRO_ANTIALIAS_NONE and a single-color source in the test to get rid of aliasing issues in the output images. This makes some issues slightly less visible, but still fails for all of them. If you want to get a clearer view, disable it and use romedalen.png instead - it has the same size as the red surface. (At least) 3 bugs are at work here: - if _line_exceeds_16_16() triggers for the reference point, the source surface will be misaligned. - the intel driver seems to have an off-by-one bug on my i945 when positioning the source surface, causing black seams at the top (not visible in the test unless using romedalen.png) and on the left of the image. - My Xvfb fails completely in picture up/download in the xlib-fallback path.
2009-11-02[test] Update upscale test to expose an Xlib failureBenjamin Otte5-1/+3
By filling the background with grey, we can see that Xlib fills areas with black that it shouldn't. Xlib therefore now fails this test.
2009-10-22[meta] Rename cairo_meta_surface_t to cairo_recording_surface_t.M Joonas Pihlaja19-48/+48
The new name is more descriptive than the rather opaque meta surface. Discussed with vigour on the mailing list and #cairo: http://lists.cairographics.org/archives/cairo/2009-July/017571.html
2009-10-20[test] Add surface-pattern-operatorAndrea Canciani7-0/+122
Test the results of compositing ALPHA and COLOR_ALPHA surfaces with different operators.
2009-10-19[test] Update rotate-image-surface-paintChris Wilson8-38/+45
Update this test case so the background is not the default border colour so that we spot when the backend pads out the transformed image surface.
2009-10-17[test] Add radial-gradient-sourceChris Wilson5-0/+118
ranma42 found a bug in compositing with a radial gradient using the SOURCE operator with EXTEND_NONE, as exercised here.
2009-10-15Add mising images to REFERENCE_IMAGES list.Carl Worth1-0/+8
Again, the kind of thing that only gets fixed at release time. But at least we have a nice test for this.
2009-10-15Mark in-fill-empty-trapezoid as an XFAIL test.Carl Worth2-2/+7
Otherwise, it was disrupting my attempts to release a snapshot, (since it doesn't respect CAIRO_TEST_TARGET=" " and not run like most of the tests do).
2009-10-15Remove stale references to non-existant reference images.Carl Worth1-7/+0
This is just one of those things that we don't get right until someone tries running "make distcheck".
2009-10-15[test] Add clip-device-offsetBenjamin Otte5-0/+82
Exercises a bug demonstrated by WebKit with clipping + device offsets.
2009-10-15[build] Link against pthread-stubsChris Wilson3-8/+12
Avoid pulling in the real pthread library if the application is single threaded and not using pthreads, by linking against pthread-stubs instead.
2009-09-30[boilerplate/xcb] Check for connection errors during testChris Wilson1-43/+43
2009-09-30[API] Make _cairo_meta_surface_replay() private againBenjamin Otte1-2/+6
Replaying a meta surface can be achieved by using it as a source for a cairo_paint() so exporting a separate API is unnecesary and confusing. So after consulting Chris and Carl, we decided to remove the function again.
2009-09-24Add EPS testAdrian Johnson4-0/+172
This test demonstrates a regression in the EPS output since 1.8.8. The ps-eps.ref.eps was created with 1.8.8.
2009-09-22[test] Revamp surface-sourceChris Wilson24-8/+47
Include a translucent region in the source that exercises the xlib bug that I'm trying to fix. Hmm.
2009-09-22[test] Exercise push-group-color.Chris Wilson5-0/+144
Hunting for a known bug in the xlib backend where it invalidly converts an argb32 source to rgb24. However, this does not appear to be that bug, but still a useful exercise nevertheless.
2009-09-11[test] Typos in README from previous commitChris Wilson1-1/+1
2009-09-11[test] Add Debian packages for fontsChris Wilson1-1/+3
Mention which .deb provides the required fonts.
2009-09-11[test] Update big-line and remove XFAILChris Wilson9-12/+12
Now that we use polygon clipping, output geometry should no longer exceed the 2^16 limits imposed by pixman. For the image backend, we now use spans for stroking and for the xlib backend we have to double check the range on the output trapezoids. In short, cairo should pass this test.
2009-09-09[test] Disable the antialias testing for the vector surfaces.Chris Wilson5-5/+5
Only the raster bckends obey the font anti-alias options.
2009-09-09[test] Compare a failure against the image outputChris Wilson1-0/+46
If a backend fails in exactly the same way as the image, then we can safely assume that the failure is systematic and not an error in the backend, so change the result to XFAIL.
2009-09-09[test] Typo in ft-show-glyphs-positioningChris Wilson1-1/+1
Note to self: remember to sleep more often.
2009-09-09[test] An oversized twin test case.Chris Wilson5-0/+100
A larger variant of the twin mixed antialiasing test.
2009-09-09[test] Variation of twin that intermixes antialiasingChris Wilson5-0/+100
Check that we are substituting the right glyph depth and changing masks appropriately.
2009-09-09[test] SUBPIXEL_ANTIALIAS varation of twinChris Wilson5-0/+74
Force argb32 glyphs.
2009-09-09[test] Variation of twin with ANTIALIAS_GRAYChris Wilson5-0/+74
Force generation of a8 glyphs.
2009-09-09[test] Add ANTIALIAS_NONE variation of twinChris Wilson5-0/+74
I'm off hunting bugs. By using twin with ANTIALIAS_NONE we can construct a1 glyph images independently of the native font system.
2009-09-09[test] Check for errors during ft-show-glyphs-positioningChris Wilson1-7/+39
Do not blindly assume that we managed to construct a valid scaled-font before attempting to dereference the FT_Face. Consider a machine with no fonts which is substituting twin...
2009-09-08[build] Improve handling of missing test apparatusChris Wilson2-0/+10
Improve detection, reporting and disabling of test backends when we lack the required libraries and utilities.
2009-09-05[test] Reorder dash-infinite-loop to not hit a runaway allocation.M Joonas Pihlaja1-1/+1
This test is annoying enough as it is what with it wedging the test suite and all. There's no reason why it should DOS the running box as well by sitting in a loop allocating like mad.
2009-09-04[test] Add large-source-roi.ref.png to test/Makefile.amM Joonas Pihlaja1-0/+1
Oops.. forgot to add it to the build files too
2009-09-04[test] Add unbounded variants of clip-{fill,stroke}Chris Wilson18-0/+223
Add a couple of tests to exercise a bug that Joonas spotted that I had introduced with the clip-reduction scheme - namely that I had incorrectly removed the clip on unbounded operations.
2009-09-03[test] Fix the order of random points random-intersections-curves*.M Joonas Pihlaja2-14/+20
The calls to uniform_random() to get the curve points were in the function arguments, but argument order evaluation is compiler implementation dependent.
2009-09-03[image] Check for out of bounds image surface sizes in constructors.M Joonas Pihlaja3-4/+4
The image surface code doesn't reliably work on images larger than 32767 in width or height. This patch makes the image surface constructors fail by returning a surface in the CAIRO_STATUS_INVALID_SIZE state when given negative or too large dimensions so that client code gets a prompt and correct error rather than flaky rendering on large images.
2009-09-03[test] Allow tests to XFAIL by putting the cairo_t into an error state.M Joonas Pihlaja1-7/+7
The test runner was extra strict about never letting a test put the cairo_t into an error state, and never would it check for the expectedness status of the failure. This patch moves the check for a test being an XFAIL above the check on the cairo_t's final status.
2009-09-03[test] Add clip-disjointChris Wilson5-0/+93
Soeren found another bug (thanks Soeren!) in the clipping code - as reproduced by this test case.
2009-09-02[boilerplate/test] Use numerical equality not string equalityChris Wilson1-1/+1
test == != -eq
2009-09-02[constructors] Guard against being called without any input files.M Joonas Pihlaja1-1/+6
The make-cairo-(test|boilerplate)-constructors scripts ought never to be called without arguments lest we are left constructorless.
2009-09-02[test] Add clip-imageChris Wilson4-0/+96
Exercise the XCopyArea() paths under clipping - whilst modifying that code I noticed that it was not being exercised by the test suite.
2009-08-31Update ref imagesAdrian Johnson11-0/+0
2009-08-31[test] Use HAVE_FLOCKFILE instead of _POSIX_C_SOURCE.M Joonas Pihlaja1-3/+2
The _POSIX_C_SOURCE 2001.. #define requires C99 mode and clang on Solaris is strict about such things. Use configure tests for flockfile() instead.
2009-08-29[clip] Apply surface offset when combining with clip maskChris Wilson1-0/+0
In order to correctly combine the clip mask with the compositing mask the clip path must be offset so that it is relative to the destination surface.
2009-08-29[test] Add rotated clip.Chris Wilson6-0/+114
Exercise a bug found in not offsetting the clip mask when combining with the composite mask.
2009-08-29Update reference imagesChris Wilson57-2/+12
Refresh the test reference images to match the current output where acceptable.
2009-08-29[test] Add clip-strokeChris Wilson6-0/+125
Soeren was the first to report a clipping regression in the xlib backend with strokes, and provided a test case to exercise the bug. This is an extension of his test to provide coverage of different clipping and stroking methods.
2009-08-29[test] Implicit closeChris Wilson4-0/+56
This is a simple test that broke with the determination of rectilinearity during path construction. I forgot the implicit close on fill and so the ignored the final diagonal edge and failed to draw the triangle.
2009-08-29[test] Update REFERENCE_IMAGESChris Wilson1-3/+2
2009-08-29[script] Introduce cairo_script_context_tChris Wilson1-1/+4
cairo_script_context_t is an encapsulation object for interfacing with the output - multiple surfaces can share the same context, meaning that they write to the same destination file/stream.