[libreoffice] 01/01: temporarily disable goToPage UI test
Rene Engelhard
rene at moszumanska.debian.org
Sat Nov 25 14:40:51 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 e96c1dc5db89d7b139bbac61d0042a7aa5a40988
Author: Rene Engelhard <rene at debian.org>
Date: Sat Nov 25 15:36:08 2017 +0100
temporarily disable goToPage UI test
---
changelog | 2 +-
.../disable-tests-somehow-needing-more-fonts.diff | 47 ++++++++++++++++++++++
2 files changed, 48 insertions(+), 1 deletion(-)
diff --git a/changelog b/changelog
index d9a08b2..25a08ff 100644
--- a/changelog
+++ b/changelog
@@ -1,4 +1,4 @@
-libreoffice (1:6.0.0~beta1~git20171120-1) UNRELEASED; urgency=medium
+libreoffice (1:6.0.0~beta1~git20171124-1) UNRELEASED; urgency=medium
* New upstream snapshot
diff --git a/patches/disable-tests-somehow-needing-more-fonts.diff b/patches/disable-tests-somehow-needing-more-fonts.diff
index a78c58d..bce47c3 100644
--- a/patches/disable-tests-somehow-needing-more-fonts.diff
+++ b/patches/disable-tests-somehow-needing-more-fonts.diff
@@ -39,3 +39,50 @@ index d7f548dcb4de..5bd6e6a6c5e9 100644
// check content of the first page
{
+
+# WTF. This has 3 pages. No page breaks but hardcoded "enter"s until page flops
+# over". This is flaky... odt fixed upstream in
+# https://cgit.freedesktop.org/libreoffice/core/commit/?id=b03f7cdc04f9df778e2da93eadfe1d44f7665caf
+--- a/uitest/writer_tests/goToPage.py 2017-11-24 23:35:25.646075420 +0100
++++ /dev/null 2017-11-24 23:10:03.863417381 +0100
+@@ -1,40 +0,0 @@
+-#
+-# This Source Code Form is subject to the terms of the Mozilla Public
+-# License, v. 2.0. If a copy of the MPL was not distributed with this
+-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+-
+-from uitest.framework import UITestCase
+-from libreoffice.uno.propertyvalue import mkPropertyValues
+-from uitest.uihelper.common import get_state_as_dict
+-import time
+-from uitest.path import get_srcdir_url
+-
+-def get_url_for_data_file(file_name):
+- return get_srcdir_url() + "/uitest/writer_tests/data/" + file_name
+-
+-class GoToPage_dialog(UITestCase):
+-
+- def test_go_to_page(self):
+- writer_doc = self.ui_test.load_file(get_url_for_data_file("3pages.odt"))
+- xWriterDoc = self.xUITest.getTopFocusWindow()
+- xWriterEdit = xWriterDoc.getChild("writer_edit")
+-
+- self.ui_test.execute_dialog_through_command(".uno:GotoPage")
+- xDialog = self.xUITest.getTopFocusWindow()
+- xPageText = xDialog.getChild("page")
+- xPageText.executeAction("TYPE", mkPropertyValues({"TEXT":"2"}))
+- xOkBtn = xDialog.getChild("ok")
+- xOkBtn.executeAction("CLICK", tuple())
+-
+- self.assertEqual(get_state_as_dict(xWriterEdit)["CurrentPage"], "2")
+-
+- self.ui_test.execute_dialog_through_command(".uno:GotoPage")
+- xDialog = self.xUITest.getTopFocusWindow()
+- xPageText = xDialog.getChild("page")
+- xPageText.executeAction("TYPE", mkPropertyValues({"TEXT":"3a"}))
+- xOkBtn = xDialog.getChild("ok")
+- xOkBtn.executeAction("CLICK", tuple())
+-
+- self.assertEqual(get_state_as_dict(xWriterEdit)["CurrentPage"], "3")
+-
+- self.ui_test.close_doc()
--
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