Get the style color and number just once
[LibreOffice.git] / sw / qa / uitest / writer_tests6 / tdf107847.py
blob41e6433cfca14a7efdb52512d4f3129b2f476902
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 #Bug 107847 - CRASH Opening macro tab of properties dialog (images, frames) causes crash
14 class tdf107847(UITestCase):
16 def test_tdf_107847_macro_tab_crash(self):
17 with self.ui_test.create_doc_in_start_center("writer") as document:
19 with self.ui_test.execute_dialog_through_command(".uno:InsertFrame") as xDialog:
20 xTabs = xDialog.getChild("tabcontrol")
21 select_pos(xTabs, "1")
22 select_pos(xTabs, "2")
23 select_pos(xTabs, "3")
24 select_pos(xTabs, "4")
25 select_pos(xTabs, "5")
26 select_pos(xTabs, "6")
27 select_pos(xTabs, "7")
28 select_pos(xTabs, "8") #tab Macro
30 self.assertEqual(len(document.TextFrames), 1)
31 self.xUITest.executeCommand(".uno:Undo")
32 self.assertEqual(len(document.TextFrames), 0)
33 # vim: set shiftwidth=4 softtabstop=4 expandtab: