[libreoffice] 01/06: we still need tdf108963-test.diff - update that to the new version

Rene Engelhard rene at moszumanska.debian.org
Fri Oct 20 21:52:52 UTC 2017


This is an automated email from the git hooks/post-receive script.

rene pushed a commit to branch debian-experimental-6.0
in repository libreoffice.

commit ad5bf2e6da8e291c0eeb4c66bd47eabe75bab9a7
Author: Rene Engelhard <rene at debian.org>
Date:   Fri Oct 20 10:30:31 2017 +0000

    we still need tdf108963-test.diff - update that to the new version
    
    This reverts commit cb1809355d777e92a0ef5183f66802f35ceefdd8.
---
 patches/series              |  2 +-
 patches/tdf108963-test.diff | 54 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+), 1 deletion(-)

diff --git a/patches/series b/patches/series
index 570ad3c..132ab3d 100644
--- a/patches/series
+++ b/patches/series
@@ -31,5 +31,5 @@ disable-some-sc-tests-with-internal-cppunit.diff
 cppunit-optional.diff
 disable-unused-test-programs.diff
 ww8export-HAVE_MORE_FONTS.diff
-avoid-throwing-cpp-exceptions-across-libgpeg-c-frames.diff
 arm64-bridges-no-stack-protector-strong.diff
+tdf108963-test.diff
diff --git a/patches/tdf108963-test.diff b/patches/tdf108963-test.diff
new file mode 100644
index 0000000..4a10ed3
--- /dev/null
+++ b/patches/tdf108963-test.diff
@@ -0,0 +1,54 @@
+PDF got exported and the text rotated. Somehow we get 40/36, though. But as it
+gets rotated, adapt the values so that the test passes...
+
+diff --git a/vcl/qa/cppunit/pdfexport/pdfexport.cxx b/vcl/qa/cppunit/pdfexport/pdfexport.cxx
+index a904a5dc638d..1d9e0bbd5e67 100644
+--- a/vcl/qa/cppunit/pdfexport/pdfexport.cxx
++++ b/vcl/qa/cppunit/pdfexport/pdfexport.cxx
+@@ -724,36 +724,36 @@ void PdfExportTest::testTdf108963()
+             float fX = 0;
+             float fY = 0;
+             FPDFPathSegment_GetPoint(pSegment, &fX, &fY);
+-            CPPUNIT_ASSERT_EQUAL(static_cast<float>(245.4), fX);
+-            CPPUNIT_ASSERT_EQUAL(static_cast<float>(244.2), fY);
++            CPPUNIT_ASSERT_EQUAL(static_cast<float>(246.3), fX);
++            CPPUNIT_ASSERT_EQUAL(static_cast<float>(242.9), fY);
+             CPPUNIT_ASSERT(!FPDFPathSegment_GetClose(pSegment));
+ 
+             pSegment = FPDFPath_GetPathSegment(pPdfPageObject, 1);
+             CPPUNIT_ASSERT_EQUAL(FPDF_SEGMENT_LINETO, FPDFPathSegment_GetType(pSegment));
+             FPDFPathSegment_GetPoint(pSegment, &fX, &fY);
+-            CPPUNIT_ASSERT_EQUAL(static_cast<float>(275.1), fX);
+-            CPPUNIT_ASSERT_EQUAL(static_cast<float>(267.6), fY);
++            CPPUNIT_ASSERT_EQUAL(static_cast<float>(276.1), fX);
++            CPPUNIT_ASSERT_EQUAL(static_cast<float>(266.3), fY);
+             CPPUNIT_ASSERT(!FPDFPathSegment_GetClose(pSegment));
+ 
+             pSegment = FPDFPath_GetPathSegment(pPdfPageObject, 2);
+             CPPUNIT_ASSERT_EQUAL(FPDF_SEGMENT_LINETO, FPDFPathSegment_GetType(pSegment));
+             FPDFPathSegment_GetPoint(pSegment, &fX, &fY);
+-            CPPUNIT_ASSERT_EQUAL(static_cast<float>(287.5), fX);
+-            CPPUNIT_ASSERT_EQUAL(static_cast<float>(251.8), fY);
++            CPPUNIT_ASSERT_EQUAL(static_cast<float>(286.5), fX);
++            CPPUNIT_ASSERT_EQUAL(static_cast<float>(253), fY);
+             CPPUNIT_ASSERT(!FPDFPathSegment_GetClose(pSegment));
+ 
+             pSegment = FPDFPath_GetPathSegment(pPdfPageObject, 3);
+             CPPUNIT_ASSERT_EQUAL(FPDF_SEGMENT_LINETO, FPDFPathSegment_GetType(pSegment));
+             FPDFPathSegment_GetPoint(pSegment, &fX, &fY);
+-            CPPUNIT_ASSERT_EQUAL(static_cast<float>(257.8), fX);
+-            CPPUNIT_ASSERT_EQUAL(static_cast<float>(228.4), fY);
++            CPPUNIT_ASSERT_EQUAL(static_cast<float>(256.8), fX);
++            CPPUNIT_ASSERT_EQUAL(static_cast<float>(229.6), fY);
+             CPPUNIT_ASSERT(!FPDFPathSegment_GetClose(pSegment));
+ 
+             pSegment = FPDFPath_GetPathSegment(pPdfPageObject, 4);
+             CPPUNIT_ASSERT_EQUAL(FPDF_SEGMENT_LINETO, FPDFPathSegment_GetType(pSegment));
+             FPDFPathSegment_GetPoint(pSegment, &fX, &fY);
+-            CPPUNIT_ASSERT_EQUAL(static_cast<float>(245.4), fX);
+-            CPPUNIT_ASSERT_EQUAL(static_cast<float>(244.2), fY);
++            CPPUNIT_ASSERT_EQUAL(static_cast<float>(246.3), fX);
++            CPPUNIT_ASSERT_EQUAL(static_cast<float>(242.9), fY);
+             CPPUNIT_ASSERT(FPDFPathSegment_GetClose(pSegment));
+         }
+     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openoffice/libreoffice.git



More information about the Pkg-openoffice-commits mailing list