fdo#55814: unit test is missing

David Ostrovsky david.ostrovsky at gmx.de
Sat Mar 9 05:29:54 PST 2013


Hi,

i've been told yesterday that the usage of writer is severly restricted.
All versions since 3.5 are affected. There is a bug for it:
https://bugs.freedesktop.org/show_bug.cgi?id=55814

I wonder why we don't have any unit test for that part of code?

Another question is bug prioritization. That one is clearly a blocker 
for me,
and belongs on ESC list of most critical bugs we have and should take 
care of.
May be we need a new category? How about "Most servere impact on customers"?

Anyway, to reproduce that one a trivial document with only two character 
is needed:

0
a

where

"0" is a variable "test" with the initial value 0
"a" is a section that should be hidden if the condition is met: "test EQ 1"

Changing the value of variable from 0 to 1 overrides currently the 
condition to "0",
leaving the section unhidden.

How can i create a unit test for that? Could you point me to some 
similar writer tests?
I would expect that programmatic construction of such a document 
shouldn't be hard.
Then change the variable from "0" to "1" and check that the section is 
removed from the
model, preserving the original condition.

Thanks
David



More information about the LibreOffice mailing list