summaryrefslogtreecommitdiff
path: root/sw/qa/python/xtext.py
diff options
context:
space:
mode:
Diffstat (limited to 'sw/qa/python/xtext.py')
-rw-r--r--sw/qa/python/xtext.py8
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"])