Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sw / qa / uitest / table / tdf115026.py
blob3b372f6431bbc8d3f2bc747c2afb501af4a4a755
1 # -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 from uitest.framework import UITestCase
11 from uitest.uihelper.common import get_state_as_dict
13 class tdf115026(UITestCase):
15 def test_pageBreak_and_tableAutoFormat(self):
16 with self.ui_test.create_doc_in_start_center("writer"):
17 xWriterDoc = self.xUITest.getTopFocusWindow()
18 xWriterEdit = xWriterDoc.getChild("writer_edit")
20 self.xUITest.executeCommand(".uno:InsertPagebreak")
21 self.assertEqual(get_state_as_dict(xWriterEdit)["CurrentPage"], "2")
23 with self.ui_test.execute_dialog_through_command(".uno:InsertTable"):
24 pass
26 with self.ui_test.execute_dialog_through_command(".uno:AutoFormat"):
27 pass
29 self.assertEqual(get_state_as_dict(xWriterEdit)["CurrentPage"], "2")
31 # vim: set shiftwidth=4 softtabstop=4 expandtab: