Unit tests for Pango and Cairo
parent
ca7a155b72
commit
fe5a0a3df4
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue