harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hindess <mark.hind...@googlemail.com>
Subject Re: [testing] Re: AWT, Java2D and SWING contribution
Date Thu, 01 Jun 2006 15:27:47 GMT

On 1 June 2006 at 18:25, "Anton Avtamonov" <anton.avtamonov@gmail.com> wrote:
> On 6/1/06, Mark Hindess <mark.hindess@googlemail.com> wrote:
> >
> > On 1 June 2006 at 17:36, "Alexey Petrenko" <alexey.a.petrenko@gmail.com>
> > wrote:
> > >
> > > Which thing will this tool compare? Created windows or displays pixel
> > > by pixel?
> >
> > The syntax I listed for xwd dumps the whole virtual display.  You can
> > also instruct it to dump single windows.  But either way, it's a pixel
> > by pixel dump which is why I said that doing something meaningful in
> > step 4 - the comparison - would be the hard part.
> 
> Very hard part. Colors used in Harmony are not equivalent to RI.
> Therefore I expect that "as is" comparison will show that everything
> is different :-). The entire component Look is not 100% copied, i.e.
> position of the focus frame, look of the borders, etc. differ.
> Besides, colors are theme-dependent and may differ for MetalTheme and
> OceanTheme, for instance.
> That's why I suppose that using of some heuristical rules will be
> required. Like "button is in pressed state if its color became
> darker".

Yes.  I suspect you are correct.  This approach might be more suited to
regression testing.  Perhaps combined with something like Android[0] for
recording and playing back of clicks and key presses.

Regards,
 Mark.

[0] http://www.wildopensource.com/activities/larry-projects/android.php



---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message