[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: anchor-test-fail (was Re: koffice)
From: Thomas Zander <zander () kde ! org>
Date: 2010-05-27 13:35:53
Message-ID: 201005271535.53712.zander () kde ! org
[Download RAW message or body]
re-sending, koffice-devel fell out somehow.
On Thursday 27. May 2010 14.55.36 Matus wrote:
> > -----Original Message-----
> > From: Thomas Zander [mailto:zander@kde.org]
> > Sent: 27. may 2010 9:55
> >
> > Did you run the kword unit tests before committing like I asked?
>
> Sorry I forgot.
>
> I looked on the test and the found the problem.
>
> The problem is in KWAnchorStrategy::checkState ln:85 when kword checks if
> KWPageTextInfo is null.
>
> It seems that in TestDocumentLayout tests KWPageTextInfo is always null.
>
> So the tests are not valid any more.
The KWPageTextInfo pointer being null is a valid state that should not crash.
The unit test is correct and the return false being done is something that
doesn't need to be done in a lot of cases which the unit test tests.
So maybe you can fix the check in KWAnchorStrategy::checkState so the unit
tests pass again?
--
Thomas Zander
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic