Chris Wilson
968eaf3c44
[cairo-xlib] Fixup --disable-xlib-xrender
...
Fixup the headers and boilerplate to compile and run correctly when
configured with --disable-xlib-xrender.
2008-01-15 13:08:53 +00:00
Chris Wilson
755a4bb51b
[test] Win32 printing backend testing depends upon ghostscript
...
Using the Win32 printing backend requires ghostscript, so only enable
those tests if we detect 'gs' during configure.
2008-01-10 17:10:41 +00:00
Adrian Johnson
f073a83251
win32-printing: fix error in comment
2007-10-22 00:02:23 +09:30
Adrian Johnson
5fa6225045
win32-printing: Add test boilerplate
...
Testing win32-printing requires setting the default printer to
a PostScript level 3 color printer. The PostScript output is
saved to a file and converted to png using ghostscript.
2007-10-21 23:49:33 +09:30
Adrian Johnson
8520ce31be
PS: Add meta surface pattern support
2007-10-13 20:17:43 +09:30
Chris Wilson
9c65efeeb1
[boilerplate-test-surfaces] Check show page for errors.
...
Check that cairo_surface_show_page() did not generate any errors before
reading back the image buffer and saving it as a png.
2007-10-10 14:22:25 +01:00
Chris Wilson
31b52779ba
[cairo-boilerplate-xlib] Cleanup fallback after creation failure.
...
Cleanup the local resource if we fail to create the X window and
surface for the xlib fallback test target.
2007-10-05 18:34:32 +01:00
Chris Wilson
dc23ecb619
[cairo-boilerplate] Do not throw an error if an exclude target is not found.
...
If we fail to exclude a target because it was not in the list of
targets - job done and no need to throw a tantrum.
2007-09-23 21:35:59 +01:00
Vladimir Vukicevic
9e975757a2
Export cairo_surface_{copy,show}_page
...
This patch adds cairo_surface_copy_page and cairo_surface_show_page
as public methods, leaving the previous cairo_show_page variants as
shorthands. copy_page/show_page are specific to the surface, not
to the context, so they need to be surface methods.
2007-09-11 13:30:35 -07:00
Adrian Johnson
d24f019101
Add support for PDF meta-surface patterns
2007-09-05 22:26:16 +09:30
Chris Wilson
b60c0a672f
[cairo-boilerplate] Introduce CAIRO_TEST_TARGET_EXCLUDE.
...
As opposed to the CAIRO_TEST_TARGET env var which lists the exact
targets to test, CAIRO_TEST_TARGET_EXCLUDE instead supplies a list of
targets to filter from the testing set. This is useful under
circumstances where the build environment prevents testing of a target,
for example no DirectFB support or the glitz library is broken, but where
you still want to perform the minimal check that the code compiles.
2007-09-03 14:37:16 +01:00
Carl Worth
e7324454a0
Disable radial-gradient and unbounded-operator tests for pdf
...
These are failing due to (already reported) poppler bugs.
There were also problems with the gradients in the PDF
files previously, but these have recently been fixed.
2007-08-29 15:26:41 -07:00
Vladimir Vukicevic
19fa097f51
[win32] Update win32 Makefiles
...
Happy building with msys, one location for CFLAGS/etc changes (toplevel),
new pdiff makefile.
2007-08-28 10:54:18 -07:00
Carl Worth
1a6b62e599
Disable 7 cairo-pdf tests due to poppler knockout-group bug
...
The following 7 tests currently fail with poppler due to:
Poppler does not correctly handle knockout groups
https://bugs.freedesktop.org/show_bug.cgi?id=12185
and we've verified with acroread that the cairo-pdf output
does render as intended there. The disabled tests are
clip-operator, operator-clear, operator-source, over-above-source,
over-around-source, over-below-source, and over-between-source.
2007-08-27 14:45:51 -07:00
Carl Worth
1e8446609b
Add explanation of pdf_ignored_tests with links to upstream poppler bug reports
2007-08-27 14:02:55 -07:00
Chris Wilson
8894894d9d
[cairo-boilerplate-xlib] Check that the surface will fit in the screen.
...
Whilst testing the fallback surface, the resultant image was being
clipped to the screen size. Be conservative and refuse to create
windows (for CAIRO_CONTENT_COLOR surfaces) that are larger than the
screen.
2007-08-24 14:14:10 +01:00
Chris Wilson
a29544a0b6
[cairo-boilerplate-xlib] Clear Render data for the non-Render fallback.
...
As well as marking the XRender extension unavailable in
_cairo_boiler_player_xlib_disable_render(), we need to clear any
XRender derived information stored during the surface creation.
2007-08-24 12:27:15 +01:00
Behdad Esfahbod
d66f1ee82a
[boilerplate] Build libcairoboilerplate.la in make check and make test
2007-08-23 14:00:12 -04:00
Carl Worth
d05593a5fb
Add a new xlib-fallback target to test xlib using image fallbacks instead of the Render extension
2007-08-21 16:46:40 -07:00
Chris Wilson
7332a5e994
[boilerplate/xmalloc] Special case malloc(0) and friends.
...
malloc(0) can return NULL so double check the requested size before
exiting with an out-of-memory error.
2007-08-16 15:36:05 +01:00
Chris Wilson
7d853bcabc
[cairo-boilerplate-xlib] Check for NULL xrender_format before use.
...
Testing for XRender support (xrender_format != NULL) after
dereferencing said format doesn't work as intended.
2007-08-16 14:56:27 +01:00
Chris Wilson
7eaba5d5fb
[configure] Only run PostScript tests if we have ghostscript.
...
During configure check for the ghostscript command line tool (gs) before
enabling the PostScript surface tests for make check.
2007-07-05 19:02:11 +01:00
Chris Wilson
e3acacc096
[cairo-boilerplate-ps] Destroy the target on creation failure
...
Remember to destroy the ptc->target as well as the ordinary surface, if
we need to.
2007-05-08 16:48:34 +01:00
Chris Wilson
efd212bfa2
[cairo-boilerplate] Protect against the nil cairo_scaled_font_t
...
Beware the NULL pointer deference when trying to adjust the max glyph
cache size...
2007-05-08 16:48:21 +01:00
Behdad Esfahbod
ef30708217
[boilerplate] Fix typo
2007-05-02 16:22:44 -04:00
Carl Worth
2dcfb944b0
Don't test PDF tests known to fail due to poppler limitations
...
The following four tests are disabled:
gradient-alpha, linear-gradient, text-pattern, trap-clip
We don't use XFAIL as that would disable all backends, (but
we can still usefully use these tests on backends other than
PDF).
2007-04-27 16:41:17 -07:00
Behdad Esfahbod
abdcbf896a
[boilerplate] Add missing headers. Oops!
...
I blame git for it...
2007-04-21 07:23:30 -04:00
Behdad Esfahbod
79098c0370
[scaled-font] Get rid of _cairo_scaled_font_test_set_max_glyphs_cached_per_font
...
in favor of cairo_boilerplate_scaled_font_set_max_glyphs_cached.
2007-04-21 03:43:04 -04:00
Behdad Esfahbod
d2bb5f3007
[svg] Get rid of _cairo_svg_test_force_fallbacks
...
in favor of cairo_boilerplate_svg_surface_force_fallbacks.
2007-04-21 03:08:26 -04:00
Behdad Esfahbod
7e0ae8bd43
[svg] Move cairo_svg_surface_t to cairo-svg-surface-private.h
2007-04-21 02:57:55 -04:00
Behdad Esfahbod
3885fff3e6
[ps] Get rid of _cairo_ps_test_force_fallbacks
...
in favor of cairo_boilerplate_ps_surface_force_fallbacks.
2007-04-21 02:51:22 -04:00
Behdad Esfahbod
20ce190e71
[pdf] Get rid of _cairo_pdf_test_force_fallbacks
...
in favor of cairo_boilerplate_pdf_surface_force_fallbacks.
2007-04-21 02:50:53 -04:00
Behdad Esfahbod
21a7de61c2
[boilerplate] Add cairo-boilerplate-xlib.h to Makefile.am
2007-04-21 02:10:34 -04:00
Behdad Esfahbod
cd72167ede
[xlib] Get rid of _cairo_xlib_test_disable_render
...
in favor of cairo_boilerplate_xlib_surface_disable_render.
2007-04-21 02:08:38 -04:00
Behdad Esfahbod
8ae02fa470
[boilerplate] Minor indentation fix
2007-04-21 02:08:37 -04:00
Chris Wilson
5135bcf414
cairo-boilerplate - use xmalloc and friends
...
Prefer to abort gracefully if we run out of memory (or simply to protect
them from memfault).
2007-04-20 19:08:07 +01:00
Behdad Esfahbod
abcd929c57
[boilerplate] Add cairo_boilerplate_format_from_content
2007-04-20 00:52:04 -04:00
Behdad Esfahbod
97624dc488
[boilerplate] Strip test-surfaces boilerplate into cairo-boilerplate-test-surfaces*
2007-04-20 00:52:04 -04:00
Behdad Esfahbod
2e709321d8
[boilerplate] Move xasprintf to xmalloc.c
2007-04-20 00:52:03 -04:00
Behdad Esfahbod
5331445c12
[boilerplate] Cleanup includes in cairo-boilerplate-beos.cpp
2007-04-20 00:52:03 -04:00
Behdad Esfahbod
56e916d40c
[boilerplate] Fix typos in cairo-boilerplate-glitz.c
2007-04-20 00:52:03 -04:00
Behdad Esfahbod
06718b0da6
[boilerplate] Remove leftover call to cairo_test_log
2007-04-20 00:52:03 -04:00
Behdad Esfahbod
99737a60cb
[boilerplate] Clean up includes and remove unnecessary ones
2007-04-20 00:52:03 -04:00
Behdad Esfahbod
4b569f13d7
[boilerplate] Strip win32 boilerplate into cairo-boilerplate-win32*
2007-04-20 00:52:03 -04:00
Behdad Esfahbod
0a03d66fff
[boilerplate] Rename create_win32_surface to _cairo_boilerplate_win32_create_surface
2007-04-20 00:52:03 -04:00
Behdad Esfahbod
5ee882d394
[boilerplate] Remove empty cleanup_win32
2007-04-20 00:52:03 -04:00
Behdad Esfahbod
23e6abc3fc
[boilerplate] Strip glitz boilerplate into cairo-boilerplate-glitz*
2007-04-20 00:52:03 -04:00
Behdad Esfahbod
7d576a3767
[boilerplate] Minor indentation fix
2007-04-20 00:52:03 -04:00
Behdad Esfahbod
06b657ccf1
[boilerplate] Strip xcb boilerplate into cairo-boilerplate-xcb*
2007-04-20 00:52:02 -04:00
Behdad Esfahbod
65f636649d
[boilerplate] Strip svg boilerplate into cairo-boilerplate-svg*
2007-04-20 00:52:02 -04:00