[cairo-commit] cairo/test .cvsignore, 1.20, 1.21 Makefile.am, 1.37,
1.38 cairo-test.c, 1.20, 1.21 cairo-test.h, 1.6,
1.7 create-for-png.c, 1.2, 1.3 pdf-surface.c, NONE,
1.1 pixman-rotate.c, 1.6, 1.7
Carl Worth
commit at pdx.freedesktop.org
Tue Apr 26 09:43:41 PDT 2005
Committed by: cworth
Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv23467/test
Modified Files:
.cvsignore Makefile.am cairo-test.c cairo-test.h
create-for-png.c pixman-rotate.c
Added Files:
pdf-surface.c
Log Message:
* test/.cvsignore:
* test/Makefile.am:
* test/cairo-test.h:
* test/pdf-surface.c: (main): Add very simple test to generate PDF
output, (no automated verification yet).
* test/cairo-test.c: (cairo_test):
* test/create-for-png.c: (draw):
* test/pixman-rotate.c: Track PNG interface changes, (no more
include of cairo-png.h, cairo_surface_write_png renamed to
cairo_surface_write_to_png).
Index: .cvsignore
===================================================================
RCS file: /cvs/cairo/cairo/test/.cvsignore,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- .cvsignore 18 Apr 2005 23:26:14 -0000 1.20
+++ .cvsignore 26 Apr 2005 16:43:39 -0000 1.21
@@ -15,6 +15,7 @@
linear-gradient
move-to-show-surface
path-data
+pdf-surface
pixman-rotate
set-source
select-font-no-show-text
Index: Makefile.am
===================================================================
RCS file: /cvs/cairo/cairo/test/Makefile.am,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- Makefile.am 18 Apr 2005 23:26:14 -0000 1.37
+++ Makefile.am 26 Apr 2005 16:43:39 -0000 1.38
@@ -12,6 +12,7 @@
linear-gradient \
move-to-show-surface \
path-data \
+pdf-surface \
pixman-rotate \
select-font-no-show-text\
set-source \
@@ -104,6 +105,7 @@
linear_gradient_LDADD = $(LDADDS)
move_to_show_surface_LDADD = $(LDADDS)
path_data_LDADD = $(LDADDS)
+pdf_surface_LDADD = $(LDADDS)
pixman_rotate_LDADD = $(LDADDS)
select_font_no_show_text_LDADD = $(LDADDS)
set_source_LDADD = $(LDADDS)
Index: cairo-test.c
===================================================================
RCS file: /cvs/cairo/cairo/test/cairo-test.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- cairo-test.c 26 Apr 2005 03:42:54 -0000 1.20
+++ cairo-test.c 26 Apr 2005 16:43:39 -0000 1.21
@@ -32,8 +32,6 @@
#include "cairo-test.h"
-#include <cairo-png.h>
-
#include "buffer-diff.h"
#include "read-png.h"
#include "write-png.h"
@@ -169,7 +167,7 @@
return CAIRO_TEST_SUCCESS;
}
- cairo_surface_write_png (cairo_get_target_surface (cr), png_name);
+ cairo_surface_write_to_png (cairo_get_target_surface (cr), png_name);
cairo_destroy (cr);
Index: cairo-test.h
===================================================================
RCS file: /cvs/cairo/cairo/test/cairo-test.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- cairo-test.h 14 Apr 2005 17:02:58 -0000 1.6
+++ cairo-test.h 26 Apr 2005 16:43:39 -0000 1.7
@@ -28,6 +28,7 @@
#include <math.h>
#include <cairo.h>
+#include <cairo-pdf.h>
typedef enum cairo_test_status {
CAIRO_TEST_SUCCESS = 0,
Index: create-for-png.c
===================================================================
RCS file: /cvs/cairo/cairo/test/create-for-png.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- create-for-png.c 26 Apr 2005 03:42:54 -0000 1.2
+++ create-for-png.c 26 Apr 2005 16:43:39 -0000 1.3
@@ -26,7 +26,6 @@
#include "cairo-test.h"
#include <stdlib.h>
-#include <cairo-png.h>
#define WIDTH 2
#define HEIGHT 2
@@ -42,7 +41,6 @@
{
char *srcdir = getenv ("srcdir");
char *filename;
- FILE *file;
cairo_surface_t *surface;
int png_width, png_height;
--- NEW FILE: pdf-surface.c ---
(This appears to be a binary file; contents omitted.)
Index: pixman-rotate.c
===================================================================
RCS file: /cvs/cairo/cairo/test/pixman-rotate.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- pixman-rotate.c 14 Apr 2005 21:42:27 -0000 1.6
+++ pixman-rotate.c 26 Apr 2005 16:43:39 -0000 1.7
@@ -4,7 +4,6 @@
#include <math.h>
#include <cairo.h>
-#include <cairo-png.h>
#include <cairo-pdf.h>
#include "cairo-test.h"
More information about the cairo-commit
mailing list