sw/qa/uitest/writer_tests3/insertPageFooter.py |   64 -------------------------
 sw/qa/uitest/writer_tests4/insertPageHeader.py |   47 ------------------
 2 files changed, 111 deletions(-)

New commits:
commit 8431cbbed5b5665571cbb27d1330abd3dd0868f4
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Wed Feb 1 11:18:33 2023 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Feb 1 11:15:24 2023 +0000

    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 <xiscofa...@libreoffice.org>

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:

Reply via email to