summaryrefslogtreecommitdiff
path: root/test/source/text/xtext.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-05-03 23:31:30 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-05-04 00:00:55 -0400
commit921dce61acd67ee8e5f93e7c5005cb42f8c062de (patch)
treec074065cedc3d65463ded89ec7b5b9369d4bb03b /test/source/text/xtext.cxx
parent7b773d9c25fbda03f6fd97503a4af6361a2a5e87 (diff)
Let's just combine the two tests, since one requires the other.
Change-Id: I I4c02aa1d459f7d5c2a1d9c38255aae3c3043dda6
Diffstat (limited to 'test/source/text/xtext.cxx')
-rw-r--r--test/source/text/xtext.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/source/text/xtext.cxx b/test/source/text/xtext.cxx
index a9fd2db50c23..ea909a3da941 100644
--- a/test/source/text/xtext.cxx
+++ b/test/source/text/xtext.cxx
@@ -34,18 +34,12 @@ namespace apitest {
XText::~XText() {}
-void XText::testInsertTextContent()
+void XText::testInsertRemoveTextContent()
{
uno::Reference<text::XText> xText(init(), UNO_QUERY_THROW);
uno::Reference<text::XTextRange> xCursor(xText->createTextCursor(), UNO_QUERY_THROW);
xText->insertTextContent(xCursor, getTextContent(), sal_False);
-}
-
-void XText::testRemoveTextContent()
-{
- testInsertTextContent();
- uno::Reference<text::XText> xText(init(), UNO_QUERY_THROW);
xText->removeTextContent(getTextContent());
}