Debian Codegraph @

sw/qa/uitest/writer_tests8/tdf156784.py

raw symbols SCIP
1 # -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
2 #
3 # This file is part of the LibreOffice project.
4 #
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/.
8 #
9 from uitest.framework import UITestCase
10 from uitest.uihelper.common import get_url_for_data_file
11
12 # Bug 156784 - crash fix: Select All in section starting table with hidden first column
13
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:
17
18 # accept all tracked changes
19 self.xUITest.executeCommand(".uno:AcceptAllTrackedChanges")
20
21 # delete first column
22 self.xUITest.executeCommand(".uno:DeleteColumns")
23
24 # hide changes
25 self.xUITest.executeCommand(".uno:ShowTrackedChanges")
26
27 # select cell content
28 self.xUITest.executeCommand(".uno:SelectAll")
29
30 # This resulted crashing (select section starting table with hidden first column)
31 self.xUITest.executeCommand(".uno:SelectAll")
32
33 # show changes
34 self.xUITest.executeCommand(".uno:ShowTrackedChanges")
35
36 # vim: set shiftwidth=4 softtabstop=4 expandtab: