Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sw / qa / uitest / table / tdf135693.py
blob4ebaaac4ebfc1e504f43e67458c55e77363797ee
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 select_pos
12 from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file
14 class tdf135693(UITestCase):
16 def test_tdf135693(self):
17 with self.ui_test.load_file(get_url_for_data_file("tdf135693.odt")):
19 self.xUITest.getTopFocusWindow()
21 self.xUITest.executeCommand(".uno:GoRight")
22 self.xUITest.executeCommand(".uno:GoDown")
24 # Without the fix in place, this would have crashed here
25 with self.ui_test.execute_dialog_through_command(".uno:TableDialog") as xTableDlg:
28 xTabs = xTableDlg.getChild("tabcontrol")
29 select_pos(xTabs, "0")
31 # Check we are in the right table
32 self.assertEqual("Table1", get_state_as_dict(xTabs.getChild('name'))['Text'])
35 # vim: set shiftwidth=4 softtabstop=4 expandtab: