diff options
author | Artur Neumann <artur@jankaritech.com> | 2019-11-29 16:18:09 +0545 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-02-11 21:01:30 +0100 |
commit | aa691417bc29fe866d2a05a2b5a353567baba515 (patch) | |
tree | ea7ec26ddaeb98219222988bf13cf0bce421768d /sw/qa | |
parent | b412daf79f2df41f88c6eacd09f3924e376ddec2 (diff) |
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@libreoffice.org>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/uitest/writer_tests7/data/tdf128739.docx | bin | 0 -> 4375 bytes | |||
-rw-r--r-- | sw/qa/uitest/writer_tests7/tdf128739.py | 28 |
2 files changed, 28 insertions, 0 deletions
diff --git a/sw/qa/uitest/writer_tests7/data/tdf128739.docx b/sw/qa/uitest/writer_tests7/data/tdf128739.docx Binary files differnew file mode 100644 index 000000000000..cf5d00f91f28 --- /dev/null +++ b/sw/qa/uitest/writer_tests7/data/tdf128739.docx 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: |