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/.
9 from uitest
.framework
import UITestCase
10 from uitest
.uihelper
.common
import get_url_for_data_file
12 # Bug 156784 - crash fix: Select All in section starting table with hidden first column
14 class tdf156784(UITestCase
):
15 def test_tdf156784(self
):
16 with self
.ui_test
.load_file(get_url_for_data_file("TC-table-del-add.docx")) as self
.document
:
18 xToolkit
= self
.xContext
.ServiceManager
.createInstance('com.sun.star.awt.Toolkit')
20 # accept all tracked changes
21 self
.xUITest
.executeCommand(".uno:AcceptAllTrackedChanges")
24 self
.xUITest
.executeCommand(".uno:DeleteColumns")
27 self
.xUITest
.executeCommand(".uno:ShowTrackedChanges")
30 self
.xUITest
.executeCommand(".uno:SelectAll")
32 # This resulted crashing (select section starting table with hidden first column)
33 self
.xUITest
.executeCommand(".uno:SelectAll")
36 self
.xUITest
.executeCommand(".uno:ShowTrackedChanges")
38 # vim: set shiftwidth=4 softtabstop=4 expandtab: