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 class tdf145093(UITestCase
):
13 def test_tdf145093(self
):
14 # load the sample file
15 with self
.ui_test
.load_file(get_url_for_data_file("tdf39721.fodt")):
17 # redlining should be on
18 self
.xUITest
.executeCommand(".uno:TrackChanges")
20 # Move Up/Down a list item over a tracked paragraph insertion resulted a crash
21 # (Note: not only at the end of the document, but check the original
22 # bug report temporarily, where the problem is triggered by another problem).
24 self
.xUITest
.executeCommand(".uno:MoveDown")
25 self
.xUITest
.executeCommand(".uno:MoveDown")
26 # Note: Move list item from the end of the document creates an extra insertion.
27 # TODO: fix this other problem, and improve the test with an extra paragraph insertion
28 self
.xUITest
.executeCommand(".uno:MoveUp")
30 # This was a crash (using invalid pointer) both in Show Changes and Hide Changes modes
31 self
.xUITest
.executeCommand(".uno:MoveDown")
33 # vim: set shiftwidth=4 softtabstop=4 expandtab: