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/.
10 from uitest
.framework
import UITestCase
11 from uitest
.uihelper
.common
import select_pos
, get_state_as_dict
12 from uitest
.uihelper
.common
import change_measurement_unit
13 #Bug 128431 - Synchronize padding in header borders it is not working
15 class tdf128431(UITestCase
):
17 def test_tdf128431_pageFormat_sync_padding(self
):
18 with self
.ui_test
.create_doc_in_start_center("writer"):
20 with
change_measurement_unit(self
, "Centimeter"):
22 with self
.ui_test
.execute_dialog_through_command(".uno:PageDialog") as xDialog
:
23 tabcontrol
= xDialog
.getChild("tabcontrol")
24 select_pos(tabcontrol
, "6") #borders
26 sync
= xDialog
.getChild("sync")
27 bottomft
= xDialog
.getChild("bottommf")
28 topft
= xDialog
.getChild("topmf")
29 rightft
= xDialog
.getChild("rightmf")
30 leftft
= xDialog
.getChild("leftmf")
32 self
.assertEqual(get_state_as_dict(sync
)["Selected"], "true")
33 bottomft
.executeAction("UP", tuple())
34 self
.assertEqual(get_state_as_dict(bottomft
)["Text"], "0.10 cm")
35 self
.assertEqual(get_state_as_dict(topft
)["Text"], "0.10 cm")
36 self
.assertEqual(get_state_as_dict(rightft
)["Text"], "0.10 cm")
37 self
.assertEqual(get_state_as_dict(leftft
)["Text"], "0.10 cm")
41 # vim: set shiftwidth=4 softtabstop=4 expandtab: