diff options
author | Benjamin Otte <otte@redhat.com> | 2010-04-28 12:54:54 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-04-28 13:15:09 +0200 |
commit | 2ce1afa3222145e9c4f8c74a0034e0da9e93b70b (patch) | |
tree | 64a86d0ee0c9bdfbd1821cafaf1b36efa6419cb4 /test/buffer-diff.h | |
parent | 2a91d425088cb8a93de76f2f91f32a7f23f0aecd (diff) | |
download | cairo-2ce1afa3222145e9c4f8c74a0034e0da9e93b70b.tar.gz |
test-suite: add image_diff_is_failure() function
This cleans the code and fixes a boolean logic error where this check
was done manually.
Diffstat (limited to 'test/buffer-diff.h')
-rw-r--r-- | test/buffer-diff.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/buffer-diff.h b/test/buffer-diff.h index c09bc6464..2cbb8959c 100644 --- a/test/buffer-diff.h +++ b/test/buffer-diff.h @@ -66,4 +66,8 @@ image_diff (const cairo_test_context_t *ctx, cairo_surface_t *surface_diff, buffer_diff_result_t *result); +cairo_bool_t +image_diff_is_failure (const buffer_diff_result_t *result, + unsigned int tolerance); + #endif |