[Libreoffice-commits] core.git: sw/qa
Artur Neumann (via logerrit)
logerrit at kemper.freedesktop.org
Tue Feb 11 20:02:11 UTC 2020
sw/qa/uitest/writer_tests7/data/tdf128739.docx |binary
sw/qa/uitest/writer_tests7/tdf128739.py | 28 +++++++++++++++++++++++++
2 files changed, 28 insertions(+)
New commits:
commit aa691417bc29fe866d2a05a2b5a353567baba515
Author: Artur Neumann <artur at jankaritech.com>
AuthorDate: Fri Nov 29 16:18:09 2019 +0545
Commit: Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Tue Feb 11 21:01:30 2020 +0100
UI test for tdf#128739
cut, paste and undo with documents containing fieldmarks and bookmarks
Change-Id: I4ee8edf061f7cdb08ae90bee32ac07b6a0980cc1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/84054
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>
diff --git a/sw/qa/uitest/writer_tests7/data/tdf128739.docx b/sw/qa/uitest/writer_tests7/data/tdf128739.docx
new file mode 100644
index 000000000000..cf5d00f91f28
Binary files /dev/null and b/sw/qa/uitest/writer_tests7/data/tdf128739.docx differ
diff --git a/sw/qa/uitest/writer_tests7/tdf128739.py b/sw/qa/uitest/writer_tests7/tdf128739.py
new file mode 100644
index 000000000000..64a394a07a63
--- /dev/null
+++ b/sw/qa/uitest/writer_tests7/tdf128739.py
@@ -0,0 +1,28 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# 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 uitest.path import get_srcdir_url
+
+def get_url_for_data_file(file_name):
+ return get_srcdir_url() + "/sw/qa/uitest/writer_tests7/data/" + file_name
+
+class tdf128739 (UITestCase):
+
+ def test_mark_cut_paste_undo_with_markers_tdf128739 (self):
+
+ self.ui_test.load_file(get_url_for_data_file("tdf128739.docx"))
+ xWriterDoc = self.xUITest.getTopFocusWindow()
+ xWriterDoc.getChild("writer_edit")
+
+ self.xUITest.executeCommand(".uno:SelectAll")
+ self.xUITest.executeCommand(".uno:Cut")
+ self.xUITest.executeCommand(".uno:Paste")
+ self.xUITest.executeCommand(".uno:Undo")
+
+ self.ui_test.close_doc()
+# vim: set shiftwidth=4 softtabstop=4 expandtab:
More information about the Libreoffice-commits
mailing list