Issue 5010 in pharo: Testing GUI widgets

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 5010 in pharo: Testing GUI widgets

pharo
Status: Accepted
Owner: [hidden email]
CC: [hidden email]
Labels: Type-Bug Importance-High

New issue 5010 by [hidden email]: Testing GUI widgets
http://code.google.com/p/pharo/issues/detail?id=5010

One problem I faced several times is that GUI are not uniformly managed:  
some GUI widgets use of exceptions (which is cool), some other are blocking  
the currently thread (which is not cool). For example, I can write:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| t |
[self inform: 'blah'] on: Exception do: [:ex | t := ex ].
self assert: t messageText = 'blah'
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Other cool tests:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
testSupplyAnswerOfFillInTheBlank

        self should: ['blue' = ([UIManager default request: 'Your favorite color?']
                valueSupplyingAnswer: #('Your favorite color?' 'blue'))]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

However, not all widgets can be tested that way, which is quite  
problematic. For example, the following code opens a window, which is not  
one would expect:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
self should: ['/tmp' = ([UIManager default chooseDirectory]
                valueSupplyingAnswer: #('/tmp'))]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

I am not sure how easy is to solve this problem, but this is something we  
need to work on. This is important


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5010 in pharo: Testing GUI widgets

pharo
Updates:
        Status: FixReviewNeeded

Comment #1 on issue 5010 by [hidden email]: Testing GUI widgets
http://code.google.com/p/pharo/issues/detail?id=5010

Fix in 1.4 inbox SLICE-Issue-5010-Testing-GUI-widgets-SeanDeNigris.1

* Added ability to programmatically choose answer for MorphicUIManager  
chooseDirectoryXxx. Followed existing examples (e.g. requestXxx).

* Added tests for supplying answers to #informXxx, #requestXxx, and  
#chooseDirectoryXxx


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5010 in pharo: Testing GUI widgets

pharo

Comment #2 on issue 5010 by [hidden email]: Testing GUI widgets
http://code.google.com/p/pharo/issues/detail?id=5010

Alex says:


I cannot try it right now (bad internet connection), but I checked the  
source code. It looks good.



_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5010 in pharo: Testing GUI widgets

pharo
Updates:
        Labels: Milestone-1.4

Comment #3 on issue 5010 by [hidden email]: Testing GUI widgets
http://code.google.com/p/pharo/issues/detail?id=5010

(No comment was entered for this change.)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5010 in pharo: Testing GUI widgets

pharo
Updates:
        Status: Integrated

Comment #4 on issue 5010 by [hidden email]: Testing GUI widgets
http://code.google.com/p/pharo/issues/detail?id=5010

in 14137


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker