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 ] [
|
[ t ] [
|
||||||
[
|
[
|
||||||
"OH, HAI"
|
|
||||||
<font> "Helvetica" >>name 12 >>size
|
<font> "Helvetica" >>name 12 >>size
|
||||||
dummy-cairo
|
"OH, HAI"
|
||||||
<layout> &g_object_unref
|
cached-layout ink-rect>> dim>>
|
||||||
layout-dim
|
] with-destructors [ 0 > ] all?
|
||||||
] with-destructors [ { [ integer? ] [ 0 > ] } 1&& ] all?
|
|
||||||
] unit-test
|
] unit-test
|
Loading…
Reference in New Issue