diff options
author | Carl Worth <cworth@cworth.org> | 2004-11-23 13:38:09 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2004-11-23 13:38:09 +0000 |
commit | 5c143241df52440ac9e1f9a7aa7b130bae622c5e (patch) | |
tree | d6c9ac6150f8143754b93ab29b6de4f56d2f169a /test/text-cache-crash.c | |
parent | 7478ea5051306cf38ed29d9c9faa4c0263f413b8 (diff) | |
download | cairo-5c143241df52440ac9e1f9a7aa7b130bae622c5e.tar.gz |
Note that text_cache_crash is expected to fail.
Add test to demonstrate bug when item is too big for cache.
Really remove that refcount assertion this time.
Diffstat (limited to 'test/text-cache-crash.c')
-rw-r--r-- | test/text-cache-crash.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/text-cache-crash.c b/test/text-cache-crash.c index 0a50b9324..2d43129cb 100644 --- a/test/text-cache-crash.c +++ b/test/text-cache-crash.c @@ -72,6 +72,7 @@ cairo_test_t test = { static void draw (cairo_t *cr, int width, int height) { + /* Once there was a bug that choked when selecting the same font twice. */ cairo_select_font(cr, "sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD); cairo_scale_font(cr, 40.0); @@ -79,6 +80,11 @@ draw (cairo_t *cr, int width, int height) cairo_scale_font(cr, 40.0); cairo_move_to(cr, 10, 50); cairo_show_text(cr, "hello"); + + /* Then there was a bug that choked when selecting a font too big + * for the cache. */ + cairo_scale_font (cr, 500); + cairo_show_text (cr, "hello"); } int |