[cairo-commit] cairo-perl/t CairoPattern.t,1.2,1.3
Torsten Schoenfeld
commit at pdx.freedesktop.org
Sun Jan 29 11:27:23 PST 2006
- Previous message: [cairo-commit] cairo-perl Cairo.pm, 1.8, 1.9 CairoPattern.xs, 1.5,
1.6 ChangeLog, 1.15, 1.16 Makefile.PL, 1.11, 1.12 cairo-perl.h,
1.7, 1.8
- Next message: [cairo-commit] cairo-perl Cairo.pm, 1.9, 1.10 ChangeLog, 1.16,
1.17 NEWS, 1.1, 1.2 README, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: tsch
Update of /cvs/cairo/cairo-perl/t
In directory gabe:/tmp/cvs-serv3227/t
Modified Files:
CairoPattern.t
Log Message:
* Cairo.pm, CairoPattern.xs, Makefile.PL, cairo-perl.h,
t/CairoPattern.t: Add Cairo::SolidPattern::create_rgb and
create_rgba.
Index: CairoPattern.t
===================================================================
RCS file: /cvs/cairo/cairo-perl/t/CairoPattern.t,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- CairoPattern.t 12 Jul 2005 20:29:49 -0000 1.2
+++ CairoPattern.t 29 Jan 2006 19:27:21 -0000 1.3
@@ -9,7 +9,7 @@
use strict;
use warnings;
-use Test::More tests => 12;
+use Test::More tests => 16;
use constant {
IMG_WIDTH => 256,
@@ -18,9 +18,16 @@
use Cairo;
-my $surf = Cairo::ImageSurface->create ('rgb24', IMG_WIDTH, IMG_HEIGHT);
+my $pat = Cairo::SolidPattern->create_rgb(1.0, 0.0, 0.0);
+isa_ok ($pat, 'Cairo::SolidPattern');
+isa_ok ($pat, 'Cairo::Pattern');
-my $pat = Cairo::SurfacePattern->create ($surf);
+$pat = Cairo::SolidPattern->create_rgba(1.0, 0.0, 0.0, 1.0);
+isa_ok ($pat, 'Cairo::SolidPattern');
+isa_ok ($pat, 'Cairo::Pattern');
+
+my $surf = Cairo::ImageSurface->create ('rgb24', IMG_WIDTH, IMG_HEIGHT);
+$pat = Cairo::SurfacePattern->create ($surf);
isa_ok ($pat, 'Cairo::SurfacePattern');
isa_ok ($pat, 'Cairo::Pattern');
- Previous message: [cairo-commit] cairo-perl Cairo.pm, 1.8, 1.9 CairoPattern.xs, 1.5,
1.6 ChangeLog, 1.15, 1.16 Makefile.PL, 1.11, 1.12 cairo-perl.h,
1.7, 1.8
- Next message: [cairo-commit] cairo-perl Cairo.pm, 1.9, 1.10 ChangeLog, 1.16,
1.17 NEWS, 1.1, 1.2 README, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list