[libreoffice] 01/05: debian/patches/tdf108963-test.diff: adapt test to what we get

Rene Engelhard rene at moszumanska.debian.org
Sun Oct 15 11:56:47 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 7e7e6c4f3bc666344252147b4b66f019017930a5
Author: Rene Engelhard <rene at debian.org>
Date:   Sun Oct 15 13:18:02 2017 +0200

    debian/patches/tdf108963-test.diff: adapt test to what we get
---
 changelog                   |  5 ++++-
 patches/series              |  1 +
 patches/tdf108963-test.diff | 16 ++++++++++++++++
 3 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/changelog b/changelog
index 4a00cb1..115ea72 100644
--- a/changelog
+++ b/changelog
@@ -1,8 +1,11 @@
-libreoffice (1:6.0.0~alpha0~git20171013-1) UNRELEASED; urgency=medium
+libreoffice (1:6.0.0~alpha0~git20171015-1) UNRELEASED; urgency=medium
 
   [ Rene Engelhard ]
   * New upstream snapshot
 
+  * debian/patches/tdf108963-test.diff: adapt test to what we get; the
+    text _is_ rotated on export, so...
+
   * merge from Ubuntu, thanks Rico Tzschichholz:
     - Add "elementary" style package
 
diff --git a/patches/series b/patches/series
index baf4818..f8c44b6 100644
--- a/patches/series
+++ b/patches/series
@@ -29,3 +29,4 @@ disable-some-sc-tests-with-internal-cppunit.diff
 cppunit-optional.diff
 disable-unused-test-programs.diff
 ww8export-HAVE_MORE_FONTS.diff
+tdf108963-test.diff
diff --git a/patches/tdf108963-test.diff b/patches/tdf108963-test.diff
new file mode 100644
index 0000000..255b271
--- /dev/null
+++ b/patches/tdf108963-test.diff
@@ -0,0 +1,16 @@
+PDF got exported and the text rotated. Somehow we get 40, though. But as it
+gets rotated, adapt the value so that the test passes...
+
+diff --git a/vcl/qa/cppunit/pdfexport/pdfexport.cxx b/vcl/qa/cppunit/pdfexport/pdfexport.cxx
+index fecdee085f31..59ee4e9cb967 100644
+--- a/vcl/qa/cppunit/pdfexport/pdfexport.cxx
++++ b/vcl/qa/cppunit/pdfexport/pdfexport.cxx
+@@ -722,7 +722,7 @@ void PdfExportTest::testTdf108963()
+             int nHeight = fTop - fBottom;
+             // This was 37 and 20, i.e. the bounding rectangle was much smaller
+             // as the highlight polygon wasn't rotated.
+-            CPPUNIT_ASSERT_EQUAL(42, nWidth);
++            CPPUNIT_ASSERT_EQUAL(40, nWidth);
+             CPPUNIT_ASSERT_EQUAL(39, nHeight);
+         }
+     }

-- 
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