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 type_text
11 from libreoffice
.uno
.propertyvalue
import mkPropertyValues
13 class CommandWithParametersTest(UITestCase
):
15 def test_text_color_change(self
):
17 with self
.ui_test
.create_doc_in_start_center("writer"):
19 self
.xUITest
.executeCommandWithParameters(".uno:Color",
20 mkPropertyValues({"Color": 16776960}))
21 xWriterEdit
= self
.xUITest
.getTopFocusWindow().getChild("writer_edit")
22 type_text(xWriterEdit
, "LibreOffice")
25 # vim: set shiftwidth=4 softtabstop=4 expandtab: