2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 from uitest
.framework
import UITestCase
9 from uitest
.uihelper
.common
import get_state_as_dict
, type_text
11 class tdf93068(UITestCase
):
13 def test_tdf93068(self
):
15 self
.ui_test
.create_doc_in_start_center("writer")
17 xWriterDoc
= self
.xUITest
.getTopFocusWindow()
18 xWriterEdit
= xWriterDoc
.getChild("writer_edit")
20 self
.ui_test
.execute_dialog_through_command(".uno:FontDialog")
21 xFontDlg
= self
.xUITest
.getTopFocusWindow()
22 xOKBtn
= xFontDlg
.getChild("ok")
23 self
.ui_test
.close_dialog_through_button(xOKBtn
)
25 self
.ui_test
.execute_dialog_through_command(".uno:FontDialog")
26 xFontDlg
= self
.xUITest
.getTopFocusWindow()
27 xCancBtn
= xFontDlg
.getChild("cancel")
28 xCancBtn
.executeAction("CLICK", tuple())
30 self
.ui_test
.execute_dialog_through_command(".uno:FontDialog")
31 xFontDlg
= self
.xUITest
.getTopFocusWindow()
32 xDiscardBtn
= xFontDlg
.getChild("reset")
33 xDiscardBtn
.executeAction("CLICK", tuple())
34 xOKBtn
= xFontDlg
.getChild("ok")
35 self
.ui_test
.close_dialog_through_button(xOKBtn
)
37 self
.ui_test
.close_doc()