diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-01-18 09:54:11 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-01-18 11:11:53 +0100 |
commit | 96bf396ef283822c94c233510c67f0ac58d3827e (patch) | |
tree | 8f3ee9b867aa0c30741b8dab2170c80b531bb318 /sw/qa/uitest | |
parent | d03b43fdb70ee975f4054bd49376179f792aa013 (diff) |
tdf#132596: sw: Move UItest to CppUnitTest
Change-Id: I9c9ca9e266034f254c68b3f96d3582ce2cf08ab5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109511
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/uitest')
-rw-r--r-- | sw/qa/uitest/data/tdf132596.docx | bin | 11062 -> 0 bytes | |||
-rw-r--r-- | sw/qa/uitest/writer_tests7/tdf132596.py | 45 |
2 files changed, 0 insertions, 45 deletions
diff --git a/sw/qa/uitest/data/tdf132596.docx b/sw/qa/uitest/data/tdf132596.docx Binary files differdeleted file mode 100644 index f19213ae1391..000000000000 --- a/sw/qa/uitest/data/tdf132596.docx +++ /dev/null diff --git a/sw/qa/uitest/writer_tests7/tdf132596.py b/sw/qa/uitest/writer_tests7/tdf132596.py deleted file mode 100644 index daed846332be..000000000000 --- a/sw/qa/uitest/writer_tests7/tdf132596.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- 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 libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file - -class tdf132596(UITestCase): - - def test_tdf132596(self): - writer_doc = self.ui_test.load_file(get_url_for_data_file("tdf132596.docx")) - - document = self.ui_test.get_component() - self.assertEqual(2, document.CurrentController.PageCount) - - self.xUITest.executeCommand(".uno:SelectAll") - self.xUITest.executeCommand(".uno:Copy") - self.ui_test.execute_dialog_through_command(".uno:PasteSpecial") - xDialog = self.xUITest.getTopFocusWindow() - - xList = xDialog.getChild('list') - - for childName in xList.getChildren(): - xChild = xList.getChild(childName) - if get_state_as_dict(xChild)['Text'] == "Rich text formatting (RTF)": - break - - xChild.executeAction("SELECT", tuple()) - self.assertEqual(get_state_as_dict(xList)['SelectEntryText'], "Rich text formatting (RTF)") - - xOkBtn = xDialog.getChild("ok") - self.ui_test.close_dialog_through_button(xOkBtn) - - self.xUITest.executeCommand(".uno:Undo") - # Without the fix in place, it would have crashed here - - self.assertEqual(2, document.CurrentController.PageCount) - - self.ui_test.close_doc() - -# vim: set shiftwidth=4 softtabstop=4 expandtab: - |