Commit graph

53 commits

Author SHA1 Message Date
Behdad Esfahbod
ab29396ef9 [test] Add new test text-zero-len (#5177)
The test passes an empty string to cairo_show_text, cairo_text_path, and
cairo_text_extents, and NULL and an invalid pointer, with zero num_glyphs to
cairo_show_glyphs, cairo_glyph_path, and cairo_glyph_extents.
2006-12-28 20:00:16 -05:00
Carl Worth
c08bd4ec37 Ignore another test case binary 2006-12-23 00:03:31 -08:00
Carl Worth
9d2d3b95e3 Add new rectilinear-stroke test
This is in preparation for an optimized implementation of cairo_stroke
for rectilinear paths.
2006-12-22 17:59:20 -08:00
Carl Worth
267afe7be3 test/.gitignore: Ignore binarries for some recently added tests 2006-12-18 16:05:42 -08:00
Behdad Esfahbod
3cf9947795 [.gitignore] Add big-trap 2006-12-06 19:03:02 -05:00
Jamey Sharp
b0f5af3b47 Add clip-push-group to .gitignore. 2006-10-29 10:59:30 -08:00
Carl Worth
06d3786b2c Add new paint-repeat test
I added this test originally to make it easier to debug
some recent bugs, (the test suite did have some repeating
in the checkered backgrounds, but with an offset of 0,
and then also in trap clip with an offset larger than the
surface itself). This test exercises repeating more directly.

It also triggers a bug in the PostScript backend that I've
not yet investigated. So the test does fail currently.
2006-10-25 12:52:02 -07:00
Carl Worth
40e1c0246d Add neglected reference images for infinite-join test 2006-10-18 15:18:11 -07:00
Jamey Sharp
f7068de7f7 Update .gitignore in boilerplate and test. 2006-10-12 23:47:37 -07:00
Vladimir Vukicevic
a56b962428 Add win32 output files to gitignore 2006-09-19 12:19:21 -07:00
Carl Worth
5f94275a4b Update .gitignore due to recent rename. 2006-08-18 16:09:53 -07:00
Carl Worth
200a2d811e close-path: New test case to demonstrate corner case discovered by Tim Rowley
The bug shows up when doing cairo_copy_path_flat for a path that has
a curve_to immediately after a close_path. When the curve is flattened
the flattener is using (0,0) as the initial point rather than the proper
close_to point.

This test also serves to ensure a similar bug doesn't crop up when
closing a path that begins with an implicit move_to, (as from cairo_arc).
In that bug the path state may have no last-move-point and the path
is closed to (0,0). This bug is not present currently, but did appear
during the development of a fix for the bug above.
2006-08-18 06:32:11 -07:00
Carl Worth
64d2feb9f6 Harmonize implementations of source-clip and source-clip-scale to make similarities more evident. 2006-08-17 13:35:15 -07:00
Behdad Esfahbod
158e160211 [.gitignore] Add truetype-tables 2006-08-16 19:43:41 -04:00
Behdad Esfahbod
cbcf1ddd64 [test] New torture tests ft-text-vertical-layout-truetype/type1
that combine vertical layout with font_matrix rotation and translation.
Currently Type3 and Type1 font paths both show broken behavior.
The type1 test uses "Nimbus Sans L" as the font.
2006-08-16 14:27:40 -04:00
Emmanuel Pacaud
17ec33aa4f New test for long line bug.
This shows at least an issue in cairo_fixed_from_double where values
> 32767 are converted to -32768, instead of being clamped to 32767.
2006-08-14 20:19:15 +02:00
Behdad Esfahbod
915448e50f [test] Add target check-ref-dups that lists reference images having duplicate sha1sum hash
This is useful to review every once in a while to drop duplicate images that
can be dropped.  For example, if there are two identical images one named
some-test-svg-rgb24-ref.png and other some-test-svg-argb32-ref.png, those two
can be replaced with some-test-svg-ref.png.
2006-08-10 15:35:36 -04:00
Carl Worth
c70edff084 Add font-matrix-translation test case. 2006-07-14 14:40:47 -07:00
Carl Worth
d2d9a74c77 Add dash-no-dash test case to demonstrate PDF failure to turn off dashing. 2006-07-13 10:14:26 -07:00
Behdad Esfahbod
973d3a3d14 More test suite infrastructure improvements:
- Remove cairo_test_expect_failure.  cairo-test.c now checks
  env var CAIRO_XFAIL_TESTS to see if the running test is
  expected to fail.  The reason for expected failure is
  appended to the test description.
- Test description is written out.
- Failed/crashed tests also write a line out to stderr (in red),
  so one can now redirect stdout to /dev/null to only see failures.
- cairo_test() has been changed to not take the draw function
  anymore, instead, draw function is now part of the test struct.
- "make check" doesn't allow limiting backends to test using env
  var anymore.  To limit backends to test, one should use the
  TARGETS variable on the make command line.
- "make check-valgrind" now writes its log to valgrind-log instead
  of valgrind.log, to not interfere with test log file processing.
2006-07-11 22:19:39 -04:00
Carl Worth
2e2799d4f9 Ignore degenerate-path 2006-06-29 02:41:46 +02:00
Carl Worth
6a58658b73 Add test/glyph-cache-pressure to demonstrate xlib failure (bug 6955) 2006-06-22 22:05:20 -07:00
Behdad Esfahbod
f71313d427 Minor refinements, mostly to configure.in. 2006-06-21 07:05:14 -04:00
Carl Worth
cca08d9bce New bitmap-font test with bundled 6x13 font.
The 6x13 font is a public-domain terminal font from the X
distribution.
2006-06-20 17:48:06 -07:00
Behdad Esfahbod
fdc109dc59 Add create-for-stream.* to .gitignore. 2006-06-19 04:17:19 -04:00
Behdad Esfahbod
d12afb7eac Update .gitignore 2006-06-19 04:12:39 -04:00
Behdad Esfahbod
70d3719ec9 Add test device-offset-positive. 2006-06-19 03:20:09 -04:00
Jinghua Luo
4b2b8f939a Add ft-text-antilaias-none test case demonstrating bug #6759. 2006-06-17 16:29:54 +08:00
Carl Worth
2d269664f1 Add new zero-alpha test to demonstrate (X server?) bug found by Paul Giblock 2006-06-13 16:13:23 -07:00
Carl Worth
13ba5316fb Test PS and SVG backends in addition to PDF in test/fallback-resolution. 2006-06-10 09:15:31 -07:00
Carl Worth
a812b3c490 Ignore ft-text-vertical-layout binary 2006-06-09 15:37:50 -07:00
Carl Worth
b7c7d2e57c Add new test get-group-target (currently failing with paginated).
This test exercises the combination of cairo_get_group_target along
with cairo_surface_get_device_offset. Something funny is currently
going on with the surfaces based on the paginated surface.
2006-06-07 10:37:29 -07:00
Carl Worth
22232be759 Note the changed semantics of cairo_surface_set_device_offset
Specifically, device offsets now affect using the offset surface in
a source pattern as well as drawing to the surface. This behavior
os also verified with a new test case: test/device-offset.c
2006-05-24 17:24:52 -07:00
Carl Worth
0796845ae6 Add new fallback-resolution test for bug in cairo_pdf_surface_set_dpi 2006-05-24 14:03:49 -07:00
Carl Worth
1b1b59a4a9 New test: dash-scale
Tests interactions of cairo_set_dash and cairo_scale, (in particular with a
non-uniformly scaled pen).
2006-05-23 12:13:20 -07:00
Carl Worth
f0d7e3f858 Add select-font-face test for whosing multiple faces at once. 2006-05-09 14:15:27 -07:00
Carl Worth
344c2c7acd Add a couple more group-using tests: fill-and-stroke-alpha[-add] 2006-05-04 21:35:23 -07:00
Carl Worth
a16f0b4223 Add push-group to test/.gitignore 2006-05-04 15:55:05 -07:00
Vladimir Vukicevic
b3e2252b94 Augment test framework to test everything under device offsets as well.
[With this change, two tests with gradients exhibit subtle differences
under device offsets. I don't think we actually care about them
though. -cworth]
2006-05-03 23:42:45 -07:00
Carl Worth
7c825797c8 Add pdf2svg utility for manual testing (not used in test suite) 2006-05-03 13:18:40 -07:00
Carl Worth
c35bfffa10 Add new pdf-features test to exercise cairo_pdf_surface_set_size 2006-05-03 12:39:45 -07:00
Carl Worth
8488aaee1a PS: Add cairo_ps_surface_set_size along with ps-features test
Add a new cairo_ps_surface_set_size which can be used to produce a
PostScript file consisting of pages of various different sizes (or
orientations).

Also add a new test (ps-features.c) for testing this and subsequent
ps-specific function calls.
2006-05-02 12:36:35 -07:00
Emmanuel Pacaud
0625d4cd3f SVG: Ignore SVG test files. 2006-05-01 22:15:38 +02:00
Carl Worth
9729fe6024 Add line-width-scale test to demonstrate cairo_set_line_width bug 2006-04-27 11:45:38 -07:00
Carl Worth
e0a2e1fd14 Add leaky-dash test case demonstrating bug #4863.
Test case for bug #4863:

	stroking problems with wide dashed lines
	https://bugs.freedesktop.org/show_bug.cgi?id=4863
2006-04-26 12:51:54 -07:00
Carl Worth
bef621e870 Augment tests to do better testing of paths/images with alpha.
Add a new cairo_test_paint_checkered function so that tests that draw
with alpha can easily put an easy-to-see checkered background in place
first.

Add new tests caps-joins-alpha and paint-source-alpha that do simple
tests of strokes and image painting with source pattern alpha.

Also, add the checkered background to paint-with-alpha for
consistency.
2006-04-25 01:56:51 -07:00
Carl Worth
448e904b2a Merge branch 'cairo' into new-sub-path
Conflicts:

	src/cairo-path-stroke.c
	src/cairo-pdf-surface.c
	src/cairo-ps-surface.c
2006-04-18 15:18:31 -07:00
Carl Worth
e890bfd2bf Ignore dash-zero-length 2006-04-14 17:26:23 -07:00
Carl Worth
34a4ad1e5b test/show-glyphs-many: New test case to demonstrate bug #5528
This demonstrates an Xlib crash when rendering many glyphs. See:

	_XError from XRenderCompositeText8
	https://bugs.freedesktop.org/show_bug.cgi?id=5528

for more details.
2006-03-02 10:32:38 -08:00
Carl Worth
210dd59a74 Add some basic testing of cairo_font_face_get_type and
cairo_scaled_font_get_type.
2006-02-28 02:30:27 -08:00