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
13 # Bug 124829 - CRASH: cutting and undoing a sheet with external links
14 class tdf124829(UITestCase
):
15 def test_tdf124829_Crash_cutting_undo_sheet_external_links(self
):
16 #numberingformatpage.ui
17 with self
.ui_test
.load_file(get_url_for_data_file("tdf124829.ods")) as calc_doc
:
18 self
.xUITest
.executeCommand(".uno:SelectAll")
19 self
.xUITest
.executeCommand(".uno:Cut")
21 self
.xUITest
.executeCommand(".uno:Undo")
24 self
.assertEqual(len(calc_doc
.Sheets
), 6)
26 # vim: set shiftwidth=4 softtabstop=4 expandtab: