harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tharindu Mathew" <mcclou...@gmail.com>
Subject Re: [harmony-demo-1] CompositeView_VisualPositionTest problems
Date Wed, 09 Jul 2008 05:00:56 GMT
Yes that's the purpose. And that assert method doesn't give a failure :).

Any ideas on how to address this problem? Should the test be modified?

Regards,

Tharindu

On Wed, Jul 9, 2008 at 7:35 AM, Nathan Beyer <ndbeyer@apache.org> wrote:

> Should it? (I'm just making guesses at this point)
>
> On Tue, Jul 8, 2008 at 8:39 AM, Mackie Mathew <mccloud35@gmail.com> wrote:
>
> > It seems to be checking the next position of the view. I don't see any
> > side-effect of a handler being called.
> >
> > Regards,
> >
> > Tharindu
> >
> > On Tue, Jul 8, 2008 at 7:29 AM, Nathan Beyer <ndbeyer@apache.org> wrote:
> >
> > > What does 'assertNextPosition' do? Is it supposed to have a side-effect
> > of
> > > a
> > > handler getting called twice, that's supposed to add items to
> > > 'visPosCalled'?
> > >
> > > On Mon, Jul 7, 2008 at 1:52 PM, Mackie Mathew <mccloud35@gmail.com>
> > wrote:
> > >
> > > > Please look at the following code:
> > > >
> > > > public void testGetNextVisualPositionFrom_Right_01Edge_NonFlipped()
> > > >        throws BadLocationException {
> > > >
> > > >        boxViewFlip = false;
> > > >
> > > >        // Forward
> > > >        assertNextPosition(7, Forward, 6, Forward, View.EAST);
> > > >        assertEquals(2, visPosCalled.size());
> > > >
> > > >
> > > > The test fails at the following point. It doesn't insert any elements
> > but
> > > > checks for 2. Is this simply a mistake made in the test?
> > > >
> > > >
> > > > Regards,
> > > >
> > > > Tharindu
> > > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message