Kaydet (Commit) 7d1b8972 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

add initial test for handlign drawinglayer objects

Change-Id: Idbf13ef748447120baa1709be0a9c24367d0887e
Reviewed-on: https://gerrit.libreoffice.org/29418Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 786971a1
# -*- Mode: python; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
from uitest.uihelper.common import get_state_as_dict
from libreoffice.uno.propertyvalue import mkPropertyValues
from uitest.framework import UITestCase
from uitest.debug import time
class ImpressDrawinglayerTest(UITestCase):
def test_move_object(self):
self.ui_test.create_doc_in_start_center("impress")
xTemplateDlg = self.xUITest.getTopFocusWindow()
xCancelBtn = xTemplateDlg.getChild("cancel")
self.ui_test.close_dialog_through_button(xCancelBtn)
xImpressDoc = self.xUITest.getTopFocusWindow()
xEditWin = xImpressDoc.getChild("impress_win")
xDrawinglayerObject = xEditWin.getChild("Unnamed Drawinglayer object 1")
print(get_state_as_dict(xDrawinglayerObject))
xDrawinglayerObject.executeAction("MOVE", mkPropertyValues({"X": "1000", "Y":"1000"}))
time.sleep(10)
self.ui_test.close_doc()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment