From 96bf396ef283822c94c233510c67f0ac58d3827e Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Mon, 18 Jan 2021 09:54:11 +0100 Subject: 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 --- sw/qa/uitest/data/tdf132596.docx | Bin 11062 -> 0 bytes sw/qa/uitest/writer_tests7/tdf132596.py | 45 -------------------------------- 2 files changed, 45 deletions(-) delete mode 100644 sw/qa/uitest/data/tdf132596.docx delete mode 100644 sw/qa/uitest/writer_tests7/tdf132596.py (limited to 'sw/qa/uitest') diff --git a/sw/qa/uitest/data/tdf132596.docx b/sw/qa/uitest/data/tdf132596.docx deleted file mode 100644 index f19213ae1391..000000000000 Binary files a/sw/qa/uitest/data/tdf132596.docx and /dev/null differ 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: - -- cgit