Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / uitest / demo_ui / command_with_parameters.py
blob3fd8c85e3ca72bd7d6a18627e09e038ef5e257fe
1 # -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 from uitest.framework import UITestCase
8 from uitest.uihelper.common import type_text
9 from libreoffice.uno.propertyvalue import mkPropertyValues
11 class CommandWithParametersTest(UITestCase):
13 def test_text_color_change(self):
15 self.ui_test.create_doc_in_start_center("writer")
17 self.xUITest.executeCommandWithParameters(".uno:Color",
18 mkPropertyValues({"Color": 16776960}))
19 xWriterEdit = self.xUITest.getTopFocusWindow().getChild("writer_edit")
20 type_text(xWriterEdit, "Libreoffice")
22 self.ui_test.close_doc()
24 # vim: set shiftwidth=4 softtabstop=4 expandtab: