[PATCH] add quartz-surface-source test
Paolo Bonzini
bonzini at gnu.org
Wed Nov 26 06:49:00 PST 2008
---
test/Makefile.am | 6 +++++-
...ge-surface-source.c => quartz-surface-source.c} | 7 ++++---
...2.ref.png => quartz-surface-source.ps2.ref.png} | Bin 376 -> 376 bytes
...2.ref.png => quartz-surface-source.ps3.ref.png} | Bin 376 -> 376 bytes
...ource.ref.png => quartz-surface-source.ref.png} | Bin 332 -> 332 bytes
5 files changed, 9 insertions(+), 4 deletions(-)
copy test/{image-surface-source.c => quartz-surface-source.c} (88%)
copy test/{image-surface-source.ps2.ref.png => quartz-surface-source.ps2.ref.png} (100%)
copy test/{image-surface-source.ps2.ref.png => quartz-surface-source.ps3.ref.png} (100%)
copy test/{image-surface-source.ref.png => quartz-surface-source.ref.png} (100%)
diff --git a/test/Makefile.am b/test/Makefile.am
index 9c664b1..9534198 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -212,7 +212,11 @@ test_sources += ft-text-vertical-layout-type3.c
test_sources += ft-text-antialias-none.c
endif
-# Need to add win32-surface-source, quartz-surface-source
+# Need to add quartz-surface-source
+if CAIRO_HAS_QUARTZ_SURFACE
+test_sources += quartz-surface-source.c
+endif
+
if CAIRO_HAS_GLITZ_SURFACE
test_sources += glitz-surface-source.c
endif
diff --git a/test/image-surface-source.c b/test/quartz-surface-source.c
similarity index 88%
copy from test/image-surface-source.c
copy to test/quartz-surface-source.c
index c7c1fdc..b0c86d0 100644
--- a/test/image-surface-source.c
+++ b/test/quartz-surface-source.c
@@ -24,17 +24,18 @@
*/
#include "cairo-test.h"
+#include "cairo-quartz.h"
#include "surface-source.c"
static cairo_surface_t *
create_source_surface (int size)
{
- return cairo_image_surface_create (CAIRO_FORMAT_ARGB32, size, size);
+ return cairo_quartz_surface_create (CAIRO_FORMAT_ARGB32, size, size);
}
-CAIRO_TEST (image_surface_source,
- "Test using a image surface as the source",
+CAIRO_TEST (quartz_surface_source,
+ "Test using a Quartz surface as the source",
"source", /* keywords */
NULL, /* requirements */
SIZE, SIZE,
diff --git a/test/image-surface-source.ps2.ref.png b/test/quartz-surface-source.ps2.ref.png
similarity index 100%
copy from test/image-surface-source.ps2.ref.png
copy to test/quartz-surface-source.ps2.ref.png
diff --git a/test/image-surface-source.ps2.ref.png b/test/quartz-surface-source.ps3.ref.png
similarity index 100%
copy from test/image-surface-source.ps2.ref.png
copy to test/quartz-surface-source.ps3.ref.png
diff --git a/test/image-surface-source.ref.png b/test/quartz-surface-source.ref.png
similarity index 100%
copy from test/image-surface-source.ref.png
copy to test/quartz-surface-source.ref.png
--
1.5.5
--------------000403070007020005040709--
More information about the cairo
mailing list