Test failure

Siqi Liu me at siqi.fr
Mon Oct 7 03:51:54 PDT 2013


Hello all,

Sorry for the late response! This was a patch that I've submitted during
the hackathon in Milan and it fixes the #fdo65295 on bugzilla.

Actually we've analyzed the content of the .docx exported by writer and it
seems that the startColor and the endColor were accidentally reversed so
that each time we import and export a docx with gradient background, we
reverse the start and end color in the exported .docx file.

I would test the patch above to see if that solves the problem when I'm
back home.

Sorry for the broken build :P

ATB,
Siqi



2013/10/6 julien2412 <serval2412 at yahoo.fr>

> Hi,
>
> If StartColor and EndColor have been reversed, perhaps it was the same for
> qa part? So what about this patch?
> diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
> b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
> index f771ef9..8fdb7fb 100644
> --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
> +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
> @@ -733,8 +733,8 @@ void Test::testTextframeGradient()
>      uno::Reference<beans::XPropertySet>
> xFrame(xIndexAccess->getByIndex(0),
> uno::UNO_QUERY);
>      CPPUNIT_ASSERT_EQUAL(drawing::FillStyle_GRADIENT,
> getProperty<drawing::FillStyle>(xFrame, "FillStyle"));
>      awt::Gradient aGradient = getProperty<awt::Gradient>(xFrame,
> "FillGradient");
> -    CPPUNIT_ASSERT_EQUAL(sal_Int32(0xC0504D), aGradient.StartColor);
> -    CPPUNIT_ASSERT_EQUAL(sal_Int32(0xD99594), aGradient.EndColor);
> +    CPPUNIT_ASSERT_EQUAL(sal_Int32(0xD99594), aGradient.StartColor);
> +    CPPUNIT_ASSERT_EQUAL(sal_Int32(0xC0504D), aGradient.EndColor);
>      CPPUNIT_ASSERT_EQUAL(awt::GradientStyle_AXIAL, aGradient.Style);
>
> Julien
>
>
>
> --
> View this message in context:
> http://nabble.documentfoundation.org/Test-failure-tp4076788p4076897.html
> Sent from the Dev mailing list archive at Nabble.com.
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
>



-- 
--------

Cordialement,
Siqi LIU

Étudiant Ingénieur, 1ère année
École Supérieur d'Électricité (Supélec)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20131007/1b2669d7/attachment.html>


More information about the LibreOffice mailing list