remove math.blas.syntax and merge parsing words into math.blas.vectors/matrices
[factor/jcg.git] / basis / ui / tools / tools-tests.factor
blob5ce9e4c4a2dad2cf41a45cd626dc88643e3e3618
1 USING: ui.tools ui.tools.interactor ui.tools.listener
2 ui.tools.search ui.tools.workspace kernel models namespaces
3 sequences tools.test ui.gadgets ui.gadgets.buttons
4 ui.gadgets.labelled ui.gadgets.presentations
5 ui.gadgets.menus ui.gadgets.scrollers vocabs tools.test.ui ui accessors ;
6 IN: ui.tools.tests
8 [ f ]
10     <gadget> 0 <model> >>model <workspace-tabs> children>> empty?
11 ] unit-test
13 [ ] [ <workspace> "w" set ] unit-test
14 [ ] [ "w" get com-scroll-up ] unit-test
15 [ ] [ "w" get com-scroll-down ] unit-test
16 [ t ] [
17     "w" get book>> children>>
18     [ tool-scroller ] map sift [ scroller? ] all?
19 ] unit-test
20 [ ] [ "w" get hide-popup ] unit-test
21 [ ] [ <gadget> "w" get show-popup ] unit-test
22 [ ] [ "w" get hide-popup ] unit-test
24 [ ] [
25     <gadget> "w" get show-popup
26     <gadget> "w" get show-popup
27     "w" get hide-popup
28 ] unit-test
30 [ ] [ <workspace> [ ] with-grafted-gadget ] unit-test
32 "w" get [
34     [ ] [ "w" get "kernel" vocab show-vocab-words ] unit-test
36     [ ] [ notify-queued ] unit-test
38     [ ] [ "w" get popup>> content>>
39     list>> gadget-child "p" set ] unit-test
41     [ t ] [ "p" get presentation? ] unit-test
43     [ ] [
44         "p" get [ object>> ] [ dup hook>> curry ] bi
45         <operations-menu> gadget-child gadget-child "c" set
46     ] unit-test
48     [ ] [ notify-queued ] unit-test
50     [ t ] [ "c" get button? ] unit-test
52     [ ] [
53         "w" get listener>> input>>
54         3 handle-parse-error
55     ] unit-test
57     [ ] [ notify-queued ] unit-test
58 ] with-grafted-gadget