diff options
author | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2019-04-14 13:33:35 +0200 |
---|---|---|
committer | Björn Michaelsen <bjoern.michaelsen@libreoffice.org> | 2019-05-05 22:27:54 +0200 |
commit | e18359445fabad9ba1a704600e9ee327112cc6ae (patch) | |
tree | 62203ab19612761fac0091096c1345190a6fcd19 /sw/qa/python | |
parent | 74ac288132de7046ce25eb4539be6b9a25138399 (diff) |
[API CHANGE] SwXTextField: no more SwModify/SwClient
- fix unittest assuming the double-insertion of annotation
throwing an IllegalArgumentException was intentional
- remove SwModify/SwClient in SwXTextField
- also: add basic C++ api test
Change-Id: Ia4657dc65dfadc3e975bdf409bd5e43413ea1f5a
Reviewed-on: https://gerrit.libreoffice.org/71452
Tested-by: Jenkins
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
Diffstat (limited to 'sw/qa/python')
-rw-r--r-- | sw/qa/python/xtext.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/qa/python/xtext.py b/sw/qa/python/xtext.py index d137cb1f69ce..b8bc25d90e92 100644 --- a/sw/qa/python/xtext.py +++ b/sw/qa/python/xtext.py @@ -37,9 +37,11 @@ class TestXText(unittest.TestCase): # And the same once again, actually not inserted x_text.insertTextContent(x_cursor, x_annotation, False) - # Exception if we try to replace object by itself - with self.assertRaises(IllegalArgumentException): - x_text.insertTextContent(x_cursor, x_annotation, True) + # no exception if we try to replace object by itself: + # this did throw in the past, but only because the inserted + # UNO annotation had a core object assigned, but no document + # which insertTextContent then didnt like on another call. + x_text.insertTextContent(x_cursor, x_annotation, True) # We expect just one annotation actually self.check_annotations(["John Doe"]) |