diff options
-rw-r--r-- | sw/qa/extras/htmlimport/data/tdf154273.html | 9 | ||||
-rw-r--r-- | sw/qa/extras/htmlimport/htmlimport.cxx | 10 |
2 files changed, 19 insertions, 0 deletions
diff --git a/sw/qa/extras/htmlimport/data/tdf154273.html b/sw/qa/extras/htmlimport/data/tdf154273.html new file mode 100644 index 000000000000..6a8b8dc6380b --- /dev/null +++ b/sw/qa/extras/htmlimport/data/tdf154273.html @@ -0,0 +1,9 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + </head> + <body> + 'test' + </body> +</html> diff --git a/sw/qa/extras/htmlimport/htmlimport.cxx b/sw/qa/extras/htmlimport/htmlimport.cxx index fe062f5c83fd..41efcee327f3 100644 --- a/sw/qa/extras/htmlimport/htmlimport.cxx +++ b/sw/qa/extras/htmlimport/htmlimport.cxx @@ -520,6 +520,16 @@ CPPUNIT_TEST_FIXTURE(HtmlImportTest, testUTF16_nonBMP) getParagraph(1)->getString()); } +CPPUNIT_TEST_FIXTURE(HtmlImportTest, testTdf154273) +{ + createSwWebDoc("tdf154273.html"); + + // Without the fix in place, this test would have failed with + // - Expected: 'test' + // - Actual : 'test' + CPPUNIT_ASSERT_EQUAL(OUString("'test' "), getParagraph(1)->getString()); +} + CPPUNIT_TEST_FIXTURE(SwHtmlOptionsImportTest, testOleData) { // Given an XHTML with an <object> (containing non-image, non-OLE2 data) and an inner <object> |