| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
from uitest.framework import UITestCase |
| 11 |
from libreoffice.uno.propertyvalue import mkPropertyValues |
| 12 |
from uitest.uihelper.common import type_text |
| 13 |
|
| 14 |
class Tdf150151(UITestCase): |
| 15 |
|
| 16 |
def test_tdf150151(self): |
| 17 |
|
| 18 |
sText = "Šđčćž ŠĐČĆŽ !”#$%&/()=?*,.-;:_ ° ~ˇ^˘°˛`˙’˝”¸" |
| 19 |
|
| 20 |
with self.ui_test.create_doc_in_start_center("writer") as document: |
| 21 |
xWriterDoc = self.xUITest.getTopFocusWindow() |
| 22 |
xWriterEdit = xWriterDoc.getChild("writer_edit") |
| 23 |
|
| 24 |
type_text(xWriterEdit, sText) |
| 25 |
|
| 26 |
self.xUITest.executeCommand(".uno:SelectAll") |
| 27 |
|
| 28 |
self.xUITest.executeCommand(".uno:Copy") |
| 29 |
|
| 30 |
with self.ui_test.load_empty_file("impress") as document: |
| 31 |
|
| 32 |
xDoc = self.xUITest.getTopFocusWindow() |
| 33 |
xEditWin = xDoc.getChild("impress_win") |
| 34 |
|
| 35 |
xEditWin.executeAction("SELECT", mkPropertyValues({"OBJECT":"Unnamed Drawinglayer object 1"})) |
| 36 |
self.assertEqual("com.sun.star.drawing.SvxShapeCollection", document.CurrentSelection.getImplementationName()) |
| 37 |
|
| 38 |
self.xUITest.executeCommand(".uno:Text") |
| 39 |
self.xUITest.executeCommand(".uno:Paste") |
| 40 |
|
| 41 |
|
| 42 |
!#$%&/()=?*,.-;:_ ~^`' |
| 43 |
self.assertEqual(sText, document.DrawPages[0][1].String) |
| 44 |
|
| 45 |
|