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 get_state_as_dict
14 class tdf124295(UITestCase
):
16 def test_tdf124295(self
):
17 # Open spreadsheet and insert chart
18 with self
.ui_test
.create_doc_in_start_center("calc"):
19 with self
.ui_test
.execute_dialog_through_command(".uno:InsertObjectChart", close_button
="cancel") as xChartDlg
:
21 # Click 3D look check button
22 x3DCheckBtn
= xChartDlg
.getChild("3dlook")
23 x3DCheckBtn
.executeAction("CLICK", tuple())
25 x3DSchemeLstBox
= xChartDlg
.getChild("3dscheme")
26 # Without the fix in place, this test would have failed with:
27 # AssertionError: 'Realistic' != ''
28 self
.assertEqual("Realistic", get_state_as_dict(x3DSchemeLstBox
)["SelectEntryText"])
32 # vim: set shiftwidth=4 softtabstop=4 expandtab: