On Fri, Dec 7, 2012 at 8:48 PM, Daniel Narvaez <dwnarv...@gmail.com> wrote: > Link to the test case (tree.py is an helper that I'm trying to integrated in > toolkit)
Good! This is really useful. I was playing with it yesterday and I found it fun! Another utility that I found useful is this one: https://live.gnome.org/Accerciser It allows us to explore the full structure of our Gtk application that are running. So, we can explore our Activities to look for the specific widget. Then use "find_child" / "find_children" with the name and role_name to find them. I wrote a simple (and awful) test using these utilities to check that the frame is shown and it works. It uses ImageMagick to call the "compare" command. The idea: - preset a language - preset a XO color - look for the widget - run event on them (click, motion, etc) - wait some secs so those events take effect - take a screenshot - crop it (check only the proper section) - compare that screenshot with another already taken manually by us Known issues: - we need to hide the mouse cursor - sensible to different resolutions - < others > Maybe you can find something interesting here. Good luck with this :P Cheers, -- Kaufmann Manuel -- http://mkaufmann.com.ar
test_frame.py
Description: Binary data
my_screenshot.png.bak
Description: Binary data
_______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel