Bugzilla – Attachment 154152 Details for
Bug 127534
TextRange.getPropertyValues runs into RuntimeException when getting all properties form PropertySetinfo
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Reproducing Unittest
repro.diff (text/plain), 832 bytes, created by
Thomas Viehmann
on 2019-09-13 09:01:37 UTC
(
hide
)
Description:
Reproducing Unittest
Filename:
MIME Type:
Creator:
Thomas Viehmann
Created:
2019-09-13 09:01:37 UTC
Size:
832 bytes
patch
obsolete
>diff --git a/sw/qa/python/check_styles.py b/sw/qa/python/check_styles.py >index 8746c479fbbe..ad7bafda606d 100644 >--- a/sw/qa/python/check_styles.py >+++ b/sw/qa/python/check_styles.py >@@ -27,6 +27,15 @@ class CheckStyle(unittest.TestCase): > def tearDownClass(cls): > cls._uno.tearDown() > >+ def test_TextRangeProperties(self): >+ xDoc = CheckStyle._uno.openEmptyWriterDoc() >+ xBodyText = xDoc.getText() >+ xCursor = xBodyText.createTextCursor() >+ xBodyText.insertString(xCursor, "Hello world", 0) >+ xTextRange = list(xBodyText)[0] >+ pnames = [p.Name for p in xTextRange.PropertySetInfo.Properties] >+ xTextRange.getPropertyValues(pnames) >+ > def test_StyleFamilies(self): > xDoc = CheckStyle._uno.openEmptyWriterDoc() > xStyleFamilies = xDoc.StyleFamilies
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 127534
: 154152