summaryrefslogtreecommitdiff
path: root/svtools/qa
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/qa')
-rw-r--r--svtools/qa/unit/testHtmlWriter.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/svtools/qa/unit/testHtmlWriter.cxx b/svtools/qa/unit/testHtmlWriter.cxx
index 19e5b6078947..3e7e10d34c12 100644
--- a/svtools/qa/unit/testHtmlWriter.cxx
+++ b/svtools/qa/unit/testHtmlWriter.cxx
@@ -175,10 +175,14 @@ CPPUNIT_TEST_FIXTURE(Test, testCharacters)
aHtml.start("abc"_ostr);
aHtml.characters("hello");
aHtml.end();
+ aHtml.characters(" "); // Should not try to close a not opened tag
+ aHtml.start("abc"_ostr);
+ aHtml.characters("world"); // Should close opening tag
+ aHtml.end();
OString aString = extractFromStream(aStream);
- CPPUNIT_ASSERT_EQUAL("<abc>hello</abc>"_ostr, aString);
+ CPPUNIT_ASSERT_EQUAL("<abc>hello</abc> <abc>world</abc>"_ostr, aString);
}
CPPUNIT_TEST_FIXTURE(Test, testExactElementEnd)