USING: ui.commands ui.gadgets.buttons ui.gadgets.labels ui.gadgets tools.test namespaces sequences kernel models accessors ; IN: ui.gadgets.buttons.tests TUPLE: foo-gadget ; : com-foo-a ; : com-foo-b ; \ foo-gadget "toolbar" f { { f com-foo-a } { f com-foo-b } } define-command-map T{ foo-gadget } "t" set [ 2 ] [ "t" get children>> length ] unit-test [ "Foo A" ] [ "t" get gadget-child gadget-child label-string ] unit-test [ ] [ 2 { { 0 "atheist" } { 1 "christian" } { 2 "muslim" } { 3 "jewish" } } "religion" set ] unit-test \ must-infer \ must-infer \ must-infer [ 0 ] [ "religion" get gadget-child value>> ] unit-test [ 2 ] [ "religion" get gadget-child control-value ] unit-test