Unit tests for Pango and Cairo

db4
Slava Pestov 2009-03-01 20:14:16 -06:00
parent ca7a155b72
commit fe5a0a3df4
2 changed files with 11 additions and 5 deletions

View File

@ -0,0 +1,8 @@
IN: cairo.tests
USING: cairo tools.test math.rectangles accessors ;
[ { 10 20 } ] [
{ 10 20 } [
{ 0 1 } { 3 4 } <rect> fill-rect
] make-bitmap-image dim>>
] unit-test

View File

@ -4,10 +4,8 @@ sequences combinators.short-circuit math destructors ;
[ t ] [
[
"OH, HAI"
<font> "Helvetica" >>name 12 >>size
dummy-cairo
<layout> &g_object_unref
layout-dim
] with-destructors [ { [ integer? ] [ 0 > ] } 1&& ] all?
"OH, HAI"
cached-layout ink-rect>> dim>>
] with-destructors [ 0 > ] all?
] unit-test