1 ! Copyright (C) 2009 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: accessors arrays kernel tools.test ui.gadgets.editors
4 ui.gadgets.line-support ui.gadgets.line-support.private ui.text ;
5 IN: ui.gadgets.line-support.tests
9 { 0 0 } <multiline-editor>
10 [ 1 >>min-rows line-gadget-height ]
16 { 0 0 } <multiline-editor>
17 [ 1 >>min-cols line-gadget-width ]
24 [ 1 >>min-rows 1 >>min-cols pref-viewport-dim* ] [
25 [ font>> "m" text-width ] [ line-height ] bi 2array