Debian Codegraph @

sc/qa/uitest/calc_tests2/tdf114992_sheet_deleting.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: Delete a sheet in a calc document and LO crashes
13
14 class tdf114992(UITestCase):
15 def test_tdf114992_delete_sheet_crash(self):
16 with self.ui_test.load_file(get_url_for_data_file("tdf114992.ods")) as calc_doc:
17 self.xUITest.executeCommand(".uno:Remove")
18
19 self.assertEqual(len(calc_doc.Sheets), 1)
20 self.xUITest.executeCommand(".uno:Undo")
21 self.assertEqual(len(calc_doc.Sheets), 2)
22
23 # vim: set shiftwidth=4 softtabstop=4 expandtab: