diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-09-30 21:26:16 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-10-01 14:40:48 +0000 |
commit | 7d1b897287696789b66c848dfad94a43051769c2 (patch) | |
tree | fae5ec1fd077963427b10cc3c7d6aba540ebc8b7 /uitest/impress_tests | |
parent | 786971a13adba78072c0ec03101c6c63d76a432f (diff) |
add initial test for handlign drawinglayer objects
Change-Id: Idbf13ef748447120baa1709be0a9c24367d0887e
Reviewed-on: https://gerrit.libreoffice.org/29418
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'uitest/impress_tests')
-rw-r--r-- | uitest/impress_tests/drawinglayer.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/uitest/impress_tests/drawinglayer.py b/uitest/impress_tests/drawinglayer.py new file mode 100644 index 000000000000..76574461c73f --- /dev/null +++ b/uitest/impress_tests/drawinglayer.py @@ -0,0 +1,35 @@ +# -*- 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() |