diff --git a/basis/ui/tools/browser/browser-tests.factor b/basis/ui/tools/browser/browser-tests.factor index f56f5bcc4e..7477edbe6a 100644 --- a/basis/ui/tools/browser/browser-tests.factor +++ b/basis/ui/tools/browser/browser-tests.factor @@ -1,5 +1,5 @@ IN: ui.tools.browser.tests -USING: tools.test tools.test.ui ui.tools.browser ; +USING: tools.test tools.test.ui ui.tools.browser math ; \ must-infer -[ ] [ [ ] with-grafted-gadget ] unit-test +[ ] [ \ + [ ] with-grafted-gadget ] unit-test diff --git a/basis/ui/tools/listener/listener-tests.factor b/basis/ui/tools/listener/listener-tests.factor index f912952893..f48d87b61d 100644 --- a/basis/ui/tools/listener/listener-tests.factor +++ b/basis/ui/tools/listener/listener-tests.factor @@ -3,7 +3,7 @@ ui.tools.listener hashtables kernel namespaces parser sequences tools.test ui.commands ui.gadgets ui.gadgets.editors ui.gadgets.panes vocabs words tools.test.ui slots.private threads arrays generic threads accessors listener math -calendar ; +calendar concurrency.promises io ui.tools.common ; IN: ui.tools.listener.tests \ must-infer @@ -137,3 +137,16 @@ IN: ui.tools.listener.tests ] with-grafted-gadget [ ] [ \ + interactor-use use-if-necessary ] unit-test + +[ ] [ "l" set ] unit-test +[ ] [ "l" get com-scroll-up ] unit-test +[ ] [ "l" get com-scroll-down ] unit-test +[ ] [ "l" get hide-popup ] unit-test +[ ] [ "l" get show-popup ] unit-test +[ ] [ "l" get hide-popup ] unit-test + +[ ] [ + "l" get show-popup + "l" get show-popup + "l" get hide-popup +] unit-test \ No newline at end of file diff --git a/basis/ui/tools/tools-tests.factor b/basis/ui/tools/tools-tests.factor deleted file mode 100644 index 3362bb7f5e..0000000000 --- a/basis/ui/tools/tools-tests.factor +++ /dev/null @@ -1,59 +0,0 @@ -USING: ui.tools ui.tools.interactor ui.tools.listener -ui.tools.search kernel models namespaces -sequences tools.test ui.gadgets ui.gadgets.buttons -ui.gadgets.labelled ui.gadgets.presentations -ui.gadgets.menus ui.gadgets.scrollers vocabs -tools.test.ui ui accessors ; -IN: ui.tools.tests - -[ f ] -[ - 0 >>model children>> empty? -] unit-test - -[ ] [ "w" set ] unit-test -[ ] [ "w" get com-scroll-up ] unit-test -[ ] [ "w" get com-scroll-down ] unit-test -[ t ] [ - "w" get book>> children>> - [ tool-scroller ] map sift [ scroller? ] all? -] unit-test -[ ] [ "w" get hide-popup ] unit-test -[ ] [ "w" get show-popup ] unit-test -[ ] [ "w" get hide-popup ] unit-test - -[ ] [ - "w" get show-popup - "w" get show-popup - "w" get hide-popup -] unit-test - -[ ] [ [ ] with-grafted-gadget ] unit-test - -"w" get [ - - [ ] [ "w" get "kernel" vocab show-vocab-words ] unit-test - - [ ] [ notify-queued ] unit-test - - [ ] [ "w" get popup>> content>> - list>> gadget-child "p" set ] unit-test - - [ t ] [ "p" get presentation? ] unit-test - - [ ] [ - "p" get [ object>> ] [ dup hook>> curry ] bi - gadget-child gadget-child "c" set - ] unit-test - - [ ] [ notify-queued ] unit-test - - [ t ] [ "c" get button? ] unit-test - - [ ] [ - "w" get listener>> input>> - 3 handle-parse-error - ] unit-test - - [ ] [ notify-queued ] unit-test -] with-grafted-gadget