summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2023-02-01 11:18:33 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2023-02-01 11:15:24 +0000
commit8431cbbed5b5665571cbb27d1330abd3dd0868f4 (patch)
treed125e6044d8e53bbf04b15373d21f62e38bd203e
parent62797844fed93d5e33505d544606e4d4e2530f8c (diff)
uitest: sw: remove duplicated tests
These are already covered by CppUnittests Change-Id: If41e73557566304e9e2d44ecccbf0e30b77d2807 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146432 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--sw/qa/uitest/writer_tests3/insertPageFooter.py64
-rw-r--r--sw/qa/uitest/writer_tests4/insertPageHeader.py47
2 files changed, 0 insertions, 111 deletions
diff --git a/sw/qa/uitest/writer_tests3/insertPageFooter.py b/sw/qa/uitest/writer_tests3/insertPageFooter.py
deleted file mode 100644
index 577c33ab6b55..000000000000
--- a/sw/qa/uitest/writer_tests3/insertPageFooter.py
+++ /dev/null
@@ -1,64 +0,0 @@
-# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
-#
-# This file is part of the LibreOffice project.
-#
-# 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
-
-class WriterInsertPageFooter(UITestCase):
-
- def insert_footer(self):
- document = self.ui_test.get_component()
-
- self.assertEqual(
- document.StyleFamilies.PageStyles.Standard.FooterIsOn, False)
-
- self.xUITest.executeCommand(
- ".uno:InsertPageFooter?PageStyle:string=Default%20Page%20Style&On:bool=true")
-
- self.assertEqual(
- document.StyleFamilies.PageStyles.Standard.FooterIsOn, True)
-
- def delete_footer(self):
- document = self.ui_test.get_component()
-
- self.assertEqual(
- document.StyleFamilies.PageStyles.Standard.FooterIsOn, True)
-
- with self.ui_test.execute_dialog_through_command(
- ".uno:InsertPageFooter?PageStyle:string=Default%20Page%20Style&On:bool=false", close_button="yes"):
- pass
-
- self.assertEqual(
- document.StyleFamilies.PageStyles.Standard.FooterIsOn, False)
-
- def test_footer(self):
- with self.ui_test.create_doc_in_start_center("writer"):
-
- self.insert_footer()
-
- self.delete_footer()
-
-
- def test_tdf107427(self):
- with self.ui_test.create_doc_in_start_center("writer") as document:
-
- self.insert_footer()
-
- with self.ui_test.execute_dialog_through_command(".uno:InsertTable"):
- pass
-
-
- tables = document.getTextTables()
- self.assertEqual(len(tables[0].getRows()), 2)
- self.assertEqual(len(tables[0].getColumns()), 2)
-
- self.xUITest.executeCommand(".uno:SelectAll")
-
- self.delete_footer()
-
-# vim: set shiftwidth=4 softtabstop=4 expandtab:
diff --git a/sw/qa/uitest/writer_tests4/insertPageHeader.py b/sw/qa/uitest/writer_tests4/insertPageHeader.py
deleted file mode 100644
index 7f965cc9040d..000000000000
--- a/sw/qa/uitest/writer_tests4/insertPageHeader.py
+++ /dev/null
@@ -1,47 +0,0 @@
-# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
-#
-# This file is part of the LibreOffice project.
-#
-# 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.uihelper.common import get_url_for_data_file
-
-class WriterInsertPageHeader(UITestCase):
-
- def insert_header(self):
- document = self.ui_test.get_component()
-
- self.assertEqual(
- document.StyleFamilies.PageStyles.Standard.HeaderIsOn, False)
-
- self.xUITest.executeCommand(
- ".uno:InsertPageHeader?PageStyle:string=Default%20Page%20Style&On:bool=true")
-
- self.assertEqual(
- document.StyleFamilies.PageStyles.Standard.HeaderIsOn, True)
-
- def delete_header(self):
- document = self.ui_test.get_component()
-
- self.assertEqual(
- document.StyleFamilies.PageStyles.Standard.HeaderIsOn, True)
-
- with self.ui_test.execute_dialog_through_command(
- ".uno:InsertPageHeader?PageStyle:string=Default%20Page%20Style&On:bool=false", close_button="yes"):
- pass
-
- self.assertEqual(
- document.StyleFamilies.PageStyles.Standard.HeaderIsOn, False)
-
- def test_header(self):
- with self.ui_test.create_doc_in_start_center("writer"):
-
- self.insert_header()
-
- self.delete_header()
-
-# vim: set shiftwidth=4 softtabstop=4 expandtab: