On Tue, Jul 12, 2011 at 10:11 AM, Tom Hacohen
<[email protected]> wrote:
> Dear all,
>
> I'm glad to introduce elm_tsuite, a pixel comparison test suite for EFL.
> Thanks should go to Aharon Hillel for writing this one.
> Commit: http://trac.enlightenment.org/e/changeset/61289
>
> All the info below is also available in the README.
>
> This test suite should be used to make sure we don't break rendering of
> widgets when we do changes. For example, min size calculation breakage
> of elm_button will likely cause a resize in the test and thus an error
> will be detected by the test suite.
>
> This test suite is by no means limited to Elementary widgets only, more
> info in the commit log + README.
>
> There's currently a sample elementary.txt file there that includes a lot
> of tests for elementary widgets, just run:
> ./elm_tsuite.sh elementary.txt o
> Do changes, and then:
> ./elm_tsuite.sh elementary.txt
> to do the comparison.
>
> I hope to add some textblock tests soon as well.
>
> This is a fast and easy test suite that I hope everyone will start using.
>
> Aharon will soon start working on another test suite, that will let you
> write tests that directly call the screenshot calls and will possibly
> let you record user interaction. This will hopefully let us do even
> better testing to elementary widgets (or any other EFL application).
>
> If you have any questions, please let Aharon/me know.

It would be useful to have some references in SVN and also a tool to
diff these files, producing a hint on what's different other than pure
"cmp a b: files differ at byte X". This is done by WebKit, for
instance

Another useful idea from WebKit is the virtual dump of the render
tree. This walks the canvas, layers and objects (recursively) to
produce a textual output, that is then able to be diff'ed. This is
simpler to check and diff, also faster to run. Something like:

Evas #123 100x100:
   Layer #456:
      Rectangle #1 @0,0 100x100 #ffffffff clipper=NONE
pass_events=TRUE repeat_events=FALSE visible=TRUE
      Image #2 @10,10 50x50 #ffffffff clipper=#1 pass_events=TRUE
repeat_events=FALSE visible=TRUE visible=TRUE border=2,2,2,2
scale_hint=STATIC file=bla key=NONE
      Smart #3 @0,0 100x100 #ffffffff clipper=NONE ...
         Rectangle #4 ...
         Text #5...

The idea is to create virtual pointers (#1, #2...) so we can reference
them and diff the results in different runs.


-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: [email protected]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to